Value for design time user control lost on postback

R

rowe_newsgroups

A quick an easy question that has me stumped:

I created a simple web user control that is basically a custom bound
drop down list. If I add this control at design time, it's value is
lost during a postback, regardless of the EnableViewState setting.
However, if I use a placeholder and add the control in the Page_Load
event handler, it works as desired.

What exactly am I missing here? Shouldn't the value restore the same
in both scenarios? Or do I misunderstand how ViewState works?

Thanks for your time!

Seth Rowe
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top