Updating with data source control in asp.net

How do I trigger an update request in a data source control using a button? I have a data source with an update request configured in it. I just don't know what to add to the button_click event to fire it.

0


source to share


3 answers


In your event handler, simply call the Update method for your Datasource control.



+1


source


aha I need a parenthesis after the update command



sdsUpdateName.Update ();

+1


source


I am getting an error when I call the data source update method

sdsUpdateName.Update;

As operator

only assignment, invocation, increment, decrement and new object expressions can be used.
-1


source







All Articles