while implementing the first exec. in visual studio.net i got an err:
"
Object variable or With block variable not set.
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.NullReferenceException: Object variable or With block variable not set.
Source Error:
Line 31: Dim objCommand As New SqlCommand(strSQL, objConnection)
Line 32: objConnection.Open()
Line 33: dgNameList.DataSource = objCommand.ExecuteReader()
Line 34: dgNameList.DataBind()
Line 35: objConnection.Close()
"
in my aspx.
vb file i added:
Imports System.Web.UI.WebControls.DataGrid
and initiated: Dim dgNameList As DataGrid
any reason why???
It's my frst exec and im frustrated :(
tnx