Updating with gridview Australian cybersex chat rooms free to enter
17-Dec-2020 14:23
If I want to access the method in which we define update query, how can I access that method on aspx page & update the data in a grid view without direct use of an query on aspx page under sql data source?
What you would have to do is implement a method that handles the Grid View. In this method you will have to retrieve the data from the row that is updating and use this data to update your database.
You could cache the object that you are going to use as a data source too.Anyways, once you've populated your data source (or retrieved it from cache) you set the Grid View.Data Source property to the object you are using..call the Grid View.you also check this link please , by thw way ur link is not working. So, the View State with all of the data for your Grid View is loaded just after the Init event.
This makes the data in your Grid View is available in the Page Load event...including data entered by the user.When this event fired it saves the values at their view state & this view state is sent to the client. NET controls used to access the data in your C#/VB. If you do a Data Bind in the Page Load event then all of this data is lost!