c# - Gridview Refresh Problem -
I have a gridview in an asp.net page, and get data by binding it into a SQL Server table, I Use C # and stored procedure in SQL Server to store data. Everything works fine, except when I delete several rows using the stored procedure, gridview still shows the old data. In fact, I have some text boxes that can enter user data and ASP buttons, As soon as the user clicks on the button, I call the stored procedure and delete the data behind the code.
How can I reload / refresh the page? After removing rows?
Thank you in advance
Control if you are using a data source (You have provided a dormitory property), to call you Grid.DataBind ()
.
If you use the grid's datasource property, you must reload the data source from that database and DataBind ()
.
Comments
Post a Comment