I ran into two problems with this approach.1) Our site uses SQLServer to store Session data, so I got this error message when trying to store the ASPx Text Box in the Session: Unable to serialize the session state.
In ' State Server' and ' SQLServer' mode, ASP.
I might try that and see if you can assign an ID to a datasource and bind it in code behind.
If not I'll try the suggestion below =) I was doing databinding in my Page_Load event and when I clicked "Update" the Post Back was done, so was the Page_Load event fired.
NET will serialize the session state objects, and as a result non-serializable objects or Marshal By Ref objects are not permitted.
The same restriction applies if similar serialization is done by the custom session state store in ' Custom' mode.
hello my problem was that my gridview editable controls heep their old values. this is due to the grid view binding in the page_load method after every post back.
When I click on the edit button the update and cancel button appear.A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.event is raised when a row's Update button is clicked, but before the Grid View control updates the row.This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.