Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Value for design time user control lost on postback

Reply
Thread Tools

Value for design time user control lost on postback

 
 
rowe_newsgroups
Guest
Posts: n/a
 
      04-28-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio Button lost it`s checked value after few time change value BobbyMy ASP .Net Web Controls 0 08-27-2005 03:04 AM
textbox value lost upon postback Ashish ASP .Net 2 02-17-2004 05:55 PM
datagrid inherited control lost design time settings dma ASP .Net Building Controls 1 02-02-2004 03:01 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net Building Controls 1 07-02-2003 08:05 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57