Update in GridView
-
I placed the following code in the asp.net tags for update command when i hit the edit button on the grid. What is happening is I take and hit edit and update the field then hit update. all my fields go completely blank. Its like the paramater is null and when the update executes it sets everythign to that value which is null but I don't know how to correct cause i thought my code was right. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
-
I placed the following code in the asp.net tags for update command when i hit the edit button on the grid. What is happening is I take and hit edit and update the field then hit update. all my fields go completely blank. Its like the paramater is null and when the update executes it sets everythign to that value which is null but I don't know how to correct cause i thought my code was right. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
-
I placed the following code in the asp.net tags for update command when i hit the edit button on the grid. What is happening is I take and hit edit and update the field then hit update. all my fields go completely blank. Its like the paramater is null and when the update executes it sets everythign to that value which is null but I don't know how to correct cause i thought my code was right. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
Hi there, What does your GridView control look like? You can create an event handler for the
Updating
event of the DataSource control, in the handler you can check theInputParameters
collection of the event data object to see the parameter values. Also, you can see more information from the link: Using Parameters with Data Source Controls [^]