Setting a hidden field programatically

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
 
K

Ken Cox [Microsoft MVP]

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

Unless the amount of data is huge, it shouldn't make much difference.
 
W

William F. Robertson, Jr.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top