Asp sqldatasource onupdating

because e.cancel is not available in updating event.

I need to do it in UPDATED not in UPDATING because in updating I can't get some events.

But, now the question is that how will you update the username or send the username to the database.

You cannot use Control Parameter since the name of the Text Box for each Grid View row is different.

You can however add assign the parameter in the Sql Data Source Updating event.

If not, this should resolve your problem right, protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) Is there any specific reason that column to be identified as User Id in the code?

If not, this should resolve your problem right, protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) ALTER PROCEDURE [Human Resources].[usp Update Employee Gender] @Employee ID1 [int], @Gender [nchar](1) AS BEGIN UPDATE [Human Resources].[Employee] SET [Gender] = @Gender WHERE [Employee ID] = @Employee ID1; END Hi, Even I got the same error when I changed Employee Id to Employee ID1, but I solved this in different way.

Search for asp sqldatasource onupdating:

asp sqldatasource onupdating-3asp sqldatasource onupdating-7asp sqldatasource onupdating-22

Sql Data Source allows you to Select/Insert/Update/Delete the data from the database without even writing a single line of code.

Leave a Reply

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

One thought on “asp sqldatasource onupdating”