Start Asp onrowupdating not working

Asp onrowupdating not working

On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.

event is raised when a row's Update button is clicked, but before the Grid View control updates the row.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.

Used breakpoints and checked, its showing the same existing values which is there before editing. aspx code protected void Page_Load(object sender, Event Args e) { DTO objc = new DTO(); string str = Environment. Is Post Back) { Get Year(); Get Month(); Grd Get Comments(); User Principal up1 = Get User Principal(str); Session["Username"] = str; Session["Name"] = up1.

Please go through the code and help me sort out this problem.

Get Button Comment(objc); Data View Grd View C = new Data View(); Grd View C.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

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.