Asp gridview onupdating
I'm using the auto generated edit feature of Grid View and the edit button appears, clicking it enters edit mode but making changes and clicking update does nothing.As far as I can tell On Row Editing triggers but On Row Updating does not. I have tested my Update Command on the SQL database directly and it works as intended.
Setting the code below into the validated field and button resolved the issue.
This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. The [Category] field is populated by a dropdown list box that gets the categories from another table (and it works fine).
Parameter name: value I'm guessing that it's because the instant the Grid View goes into edit mode, the DDL is created but has a null value in it because it hasn't pulled the data from the Data Source yet.
Many people all over the net are having this trouble too, and I've tried a ton of things.
File/9f0ae2/gridview-edit-delete-and-update-in-Asp-Net/ I hopt it 's helpful to you.