Radgrid not updating after databind
We use gridview to view data in tabular format on the web page.
If the web page is not reloaded for some time, and somedata manipulation(insert/update/delete) occurs at backend, then the viewer is presented with older(wrong) data.
This function is use to fetch data from the Student Record table, fills data in a Data Table object and find it to a Grid View control using the Data Source property.
In this code below code, you see database table columns binding with the bound fields and formatting is provided using the template fields.
The stored procedure first checks if the record exists in the table.
If the record exists then the table is simply updated else a new record is inserted in the database.
Below you will notice that I have placed a Script Manager and an ASP. The following stored procedure is used to Add and Update the records in the database.
Net Grid View Control along with a Modal Popup Extender that will be used to Add or Edit the records in the Grid View Control.
When I do a postback the Data Binding event fires twice - in both the Process Post Data and Pre Render stages of the page life cycle.
Text; bit when ichange it to string id =((Text Box) Grid View1.
If you are not familiar of binding the Grid View the way then I would suggest looking at my previous example first before you proceed to this example.
The screenshot below describes the data being saved into the database table.
You will notice that a progress bar is being displayed until the data is updated in the database.Parameter name: index Any idea what I need to do to fix this issue?