I have a web control library that I've recently finished developing. However, I'm having a problem maintaining state. I have the following code
If not ispostback then
ctrl.Property1 = x
ctrl.Property2 = y
ctrl.Main() 'runs the business logic and sets the [text] property
end if
The code works fine to generate my control the first time the page is loaded, but despite enableviewstate being set to true. It loses state on any postback. Is there some process that I need to follow to enable that functionality in the control code?
Thanks!
-Justin
If not ispostback then
ctrl.Property1 = x
ctrl.Property2 = y
ctrl.Main() 'runs the business logic and sets the [text] property
end if
The code works fine to generate my control the first time the page is loaded, but despite enableviewstate being set to true. It loses state on any postback. Is there some process that I need to follow to enable that functionality in the control code?
Thanks!
-Justin