Thank you very much for solving this problem
When I use web page to connect Database(SQL Server 2000) by ,I don't know why I can't connect database successfully as following errors
************************************************** ******************
¡°/WroxJokeShop¡±Ã¦ÃóÃÃòÃõ÷þÃñà ÷´ÃÃó¡£
--------------------------------------------------------------------------------
SQL Server ²»´æÃûò·ÃÃñ»¾Ã¾ø¡£
õÃ÷: ôÃõ±Ã° Web ÃëÃóÃü䣬³öÃÃô´¦ÃõÃÃì³ £¡£Ãë¼ì²é¶Ãû¸úÃÃÃÃ
⣬Ãà ÃýâÃùøôÃÃóÃü°´úÃëÃõ ¼ÃôÃÃóµÃ³ö´¦µÃÃêøÃÃ
â¡£
Ãì³£ÃêøÃÃ
â: System.Data.SqlClient.SqlException: SQL Server ²»´æÃûò·ÃÃñ»¾Ã¾ø¡£
ô´ÃÃó:
Ãà 10£º command.CommandType = CommandType.StoredProcedure
Ãà 11£º
Ãà 12£º connection.Open()
Ãà 13£º
Ãà 14£º
ôÃüþ: D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.
vb ÃÃ: 12
¶Ãû¸úÃÃ:
[SqlException: SQL Server ²»´æÃûò·ÃÃñ»¾Ã¾ø¡£]
System.Data.SqlClient.SqlConnection.Open() +761
WroxJokeShop.Catalog.GetDepartments() in D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.
vb:12
WroxJokeShop.DepartmentsList.Page_Load(Object sender, EventArgs e) in D:\E-Tutorial\Self Study\WroxJokeShop\UserControls\DepartmentsList.as cx.
vb:28
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Control.LoadRecursive() +92
System.Web.UI.Control.LoadRecursive() +92
System.Web.UI.Page.ProcessRequestMain() +724
Qiang Guo