Saturday, March 24, 2012

UpdatePanel and control state

Greetings,

I am currently working on my place of employments first .NET 2.0 enterprise app, and we are toying with the idea of implementing Atlas. From my first run through, it seems quite powerful, but I have either found a limitation or a problem that I hoped I could receive guidance on.

I have an update panel that contains nothing more than a label inside. Upon clicking a linkbutton, I display a ModalPopUp, with two server side buttons. Upon clicking the OK button, I am making a trip to my code behind, and populating the label with the text "OK". Herein lies the issue.

If I enable partial rendering and refresh the screen, voila, the label is now empty. If partial rendering is disabled and I refresh the screen, the control maintains state as it was a classic styled postback.

Any guidance on how I can keep the state of my controls using partial rendering, as this page I am working on will contain numerous post backs similar to this, and can't rely on the fact that a user will not ever refresh the page, thus losing everything?

All in all though, Atlas looks pretty cool.

Thanks,
Ryan

hello.

can you show us a very simple page that reproduces this issue?

No comments:

Post a Comment