SqlDataSource1" runat= "server".">
Home / Sex chatfree channell without registration / Sqldatasource updating event not firing

Sqldatasource updating event not firing

This article is one in a series of articles on ASP. In particular, we look at enabling editing support in the Grid View. This article focuses on the Sql Data Source control; for a detailed look at updating with the Object Data Source, refer to the "Editing, Inserting, and Deleting" tutorials in my Working with Data in ASP. Let's explore the updating "action" for the Access Data Source and Sql Data Source controls in more detail. NET 2.0 introduces three new data Web controls: the Grid View, the Details View, and the Form View.

sqldatasource updating event not firing-5sqldatasource updating event not firing-45

I put a breakpoint on the Row Updating event handler and found that the event is not fired. I put a breakpoint on the Row Updating event handler and found that the event is not fired. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.

When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.

But as I noted in the comments in that method, some collections that should contain the columns (names, old values and new values) are always empty. And the Row Updated method is never even touched!!! NET Forums that I need to use a Data Source control.

For example a Sql Data Source, which is automatically added to your Web Form if you drag-n-drop your way around Visual Studio 2005.

The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.


  1. Jun 28, 2011. Gridview Edite/Delete/Insert/Update Command Not Working. If I try to Delete a row I get an error as well, the Error spells out the event is being fired but isn't being handled. If I click on edit & then I hit cancel, that portion works. Here is my. 098, aspSqlDataSource ID= "SqlDataSource1" runat= "server".

Leave a Reply

Your email address will not be published. Required fields are marked *