Compare OldValue of TextBox in GridView

Compare OldValue of TextBox in GridView

am 20.12.2007 21:22:14 von David C

I have a GridView that is used to display and edit a SQL table. I have a
text field that I need to know if it changed during the update and also what
the previous Text value was before the change. What is the best way to do
this? I have other code in the OnRowEditing event, but I only want to do
take some action if the Text was actually saved in the SQL UPDATE. Thank
you.

David

RE: Compare OldValue of TextBox in GridView

am 21.12.2007 05:58:01 von Manish

Hello David,

Please refer to the link below to get the oldvalues and newvalues when you
update a particular row in the GridView

http://msdn2.microsoft.com/en-us/library/system.web.ui.webco ntrols.gridviewupdatedeventargs.oldvalues.aspx

Regards,
Manish
www.componentone.com


"David C" wrote:

> I have a GridView that is used to display and edit a SQL table. I have a
> text field that I need to know if it changed during the update and also what
> the previous Text value was before the change. What is the best way to do
> this? I have other code in the OnRowEditing event, but I only want to do
> take some action if the Text was actually saved in the SQL UPDATE. Thank
> you.
>
> David
>
>
>