An error has occurred: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open() at ASP.masterdetail_ddl_datagrid_aspx.Page_Load(Object sender, EventArgs e)
|
|
|
|
||||||||||||
Click here to return to my article index
ASP.NET: Master/Detail View using a DropDownList and a DataGridThe code sample below uses a few best pratices you should understand and be aware of:*The code below uses structured error handling techniques in the form of the Try...Catch statement. Go here to read more about the great new structured error handling we VBers now have. *The code below also uses a connection string stored in a web.config configuration file. Go here to read more about the web.config configuration file and how it can be used to store application wide data. *The code below also follows proper database resouce management per this best practice. Select a publisher from the DropDownList to see the employees listed in a DataGrid.
|