Please review the stack trace for more information about the error and where it originated in the code. Invalid Operation Exception: Invalid attempt to call Field Count when reader is closed.
Because from the suggested sites that Vinz gave me, i found that datatable/dataset wasnt in used. Query String("student ID") Dim str Subject Code As String = Request.
Source Error: Dear Shailesh Soni, Do i really need to used those? Text = str Section Dim str Table Name As String = LBSubject Code. Text 'Msg Box(str Table Name) Dim conn String As String = Configuration Manager. Connection String Using my Conn As New Sql Connection(conn String) my Conn.
Text = str Section Dim str Table Name As String = LBSubject Code. Text Dim conn String As String = Configuration Manager. Connection String Using my Conn As New Sql Connection(conn String) my Conn.
Data Source = Get Data(); This Get Data function will return Data Set or Data Table. If still confusion then pls give your code by which you have bind grid.
Make one function that will fetch data from database and and return Data Set/Data Table like, gv. Add(New Sql Parameter("@Subject Code", LBSubject Code.
I connect to my database and gave it a SELECT query and it works fine. Grid View Edit Event Args) Handles GV_Student Record.
I have a gridview which will populate at Page Load.
I have loads of codes here, because ive tried every way possible. Public Sub GV_Student Record_Row Editing(By Val sender As Object, By Val e As System.
Then i want the user to be able to edit any row in the gridview, so i did this: Now I know i hav to use Row Editing event, Row Updating Event, Row Canceling Edit event to make everything work. I hoping someone could point me in the right direction on how to use these 3 events, what syntax/coding should i use to handle these 3 events.
Sql Exception Dim msg As String = "Insert/Update Error:" msg = ex. Close() End Try End Sub Protected Sub Page_Load(By Val sender As Object, By Val e As System. Query String("subjectcode") Dim str Section As String = Request.