views:

20

answers:

0

I'm creating a basic asp.net webcontrol that will have a property that can be set at design-time in the HTML and changed at runtime in the code. I'd like to only have the value of the property saved in ViewState if it is set at runtime and is different than the original value that was set at design-time. If the value is never changed at runtime it shouldn't need to be saved in ViewState, correct?

So how can I tell if the value that is being set on the property at runtime is different than the original value? What is the proper way to code the control? Thanks.