"Steve" <st*****@hotmail.comwrote in message
news:09**********************************@microsof t.com...
How do I get the previous value of a text box ? Is there a way to access
the TextBox control state ?
There are some clever tricks you can do with ViewState, but by far the
simplest (and 100% guaranteed) method is to include a hidden field
containing the initial value of the textbox and then compare the two at
postback:
<asp:TextBox ID="MyTextBox" runat="server" Text="Hello" />
<asp:HiddenField ID="MyHiddenTextBox" runat="server" Value="Hello" />
--
Mark Rae
ASP.NET MVP
http://www.markrae.net