C
CJM
I'm not sure where I cam going wrong here... I'm getting the runtime error
above, but my code seems reasonable. Am I missing something?
Code Snippet:
oConn = New SqlConnection
oConn.ConnectionString = "Data Source=MyServer;Initial Catalog=TADB;User
Id=TADB;Password=xxx;"
oCmd = New SqlCommand("Exec TA_GetTADetails " & txtTANumber.Text)
oConn.Open()
dgResults.DataSource = oCmd.ExecuteReader()
<=========== error
dgResults.DataBind()
oConn.Close()
Thanks
Chris
above, but my code seems reasonable. Am I missing something?
Code Snippet:
oConn = New SqlConnection
oConn.ConnectionString = "Data Source=MyServer;Initial Catalog=TADB;User
Id=TADB;Password=xxx;"
oCmd = New SqlCommand("Exec TA_GetTADetails " & txtTANumber.Text)
oConn.Open()
dgResults.DataSource = oCmd.ExecuteReader()
<=========== error
dgResults.DataBind()
oConn.Close()
Thanks
Chris