Rowupdating which wasn t

posted by | Leave a comment

I have a Gridview on an ASP page bound to an SQL table.

In the event handler function I have checked for the Command Name property and write necessary code for each of the actions.

The HTML code for the Grid View is as follow : Till now everything looks fine but the problem arises when you run this application.

When you click on edit button of the Grid View a Javascript error occurs : “Microsoft JScript runtime error: Sys. Page Request Manager Server Error Exception: The Grid View ‘gd Test’ fired event Row Editing which wasn’t handled.” At first look you may think that you have not handled some events fired by the Grid View. The mystery behind this error is the property “Command Name”.

As our code does not handle those events hence they throw an exception.

So when we change the Command Name property of the buttons to some other text then it will work fine.

Leave a Reply

Web cam live sex chat uk