Value for design time user control lost on postback
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
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
.
Relevant Pages
- SuSE 9.0 menu
... sorry to bother you with this easy question (if you know the ... When using the control center I can see some menu entries ... can imagine this kind of behavour being support question no 1. ... One other annoyance with 9.0 is that the SuSE-people still haven't ... (alt.os.linux.suse) - Dropdown controls - List vs Combo
... I hope this is an easy question. ... If I use the DropDownCombo style, users are NOT restricted to the ... use this control and still allow the user to blank out the control once ... Prev by Date: ... (microsoft.public.outlook.program_forms) - Adding Control in a form
... Probably an easy question which have been asked before, ... In one of my forms I want to add a control. ... down arrows at the right side of the field (similar to the usual print ... Paul ... (microsoft.public.access.forms) - Error Rendering Control
... It has this AsDateTime property that returns the textbox contents converted to the nullable DateTime data type, ... Well if I drop this control from the toolbox to a Web Form, the control is good to go and the property works as expected. ... But if drop this control inside a Web User Control and then drop the Web User Control onto a Web Form, my server control does not get rendered on the designer. ... (microsoft.public.dotnet.framework.aspnet.buildingcontrols) - RE: Web User Controls
... inheriting a TextBox control? ... host page just to see if it'll show first. ... delete all controls in your web user control and type in some text ... The control does not render on page. ... (microsoft.public.dotnet.framework) |
|