Asp net updating database from gridview

Dear All, In Row Updating event of a Grid View I am trying to update the database picking the values of bound text Boxes in the Edit Item Templates. I confirmed update works by giving some other text vlaues instead of those retrieved from TB1, TB2, and TB3. I checked your code, it is working very good; below example of the code I used here...

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled. Odbc providers associate the parameters in the collection according to the order that the parameters appear in the parameterized SQL query. For more information about parameterized SQL queries and commands, see Using Parameters with the Sql Data Source Control.You should also be sure that your Thank you for the reply. I fixed that and now I am getting an error that says,"Exception has been thrown by the target of an invocation." Does anyone have a clue what that means?Below is the code that is being called, aslo see start of this chain for other objects In an earlier Post, JJBV mentioned something about using the Find method.

Search for asp net updating database from gridview:

asp net updating database from gridview-58asp net updating database from gridview-31

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

Leave a Reply

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

One thought on “asp net updating database from gridview”