I have that problem with example Data grid sorting on page 707. Basic always gives me error in line, where it is
»objDataAdapter.Fill(objDataSet, »Authors«)«
I have the same software as authors of this book: Windows server 2000 SP3, SQL 2000, and Visual studio .NET enterprise edition. I am surprised on this error because all other previous examples in chapters 16,17 work OK.
--------------------------------------------------------------------------------------------------------------------------------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
objConnection = New SqlConnection("server=localhost;database=pubs;inte grated security=sspi")
If Not (IsPostBack) Then
BindGrid("Last name")
End If
End Sub
ERROR
Login failed for user 'DOMA-CELERON1G3\ASPNET'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'DOMA-CELERON1G3\ASPNET'.
--------------------------------------------------------------------------------------------------------------------------------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not (IsPostBack) Then
BindGrid("Last name")
objConnection = New SqlConnection("server=localhost;database=pubs;inte grated security=sspi")
End If
End Sub
ERROR
Fill: SelectCommand.Connection property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Fill: SelectCommand.Connection property has not been initialized.

thanks in advance, Matej