Setting a hidden field programatically

  • Thread starter Thread starter SimonH
  • Start date Start date
S

SimonH

Hi all,

When a form loads, I need to store the original value along with the form
so I can check if the value submitted back has been changed.

I was wondering what the best way to do this would be?

Can I use the viewstate for this or is there a preffered solution?

Many thanks all

Simon
 
Viewstate would be fine or a hidden server-side field.

Unless the amount of data is huge, it shouldn't make much difference.
 
If the value you are checking is a list control or a text box, you could
wire to the "changed" event. This event will run before any button clicks.

bill
 
Back
Top