Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Listcontrol on placeholder does not maintain state

Reply
Thread Tools

Listcontrol on placeholder does not maintain state

 
 
chak
Guest
Posts: n/a
 
      08-15-2003
I have developed a form which dynamically builds textbox, radiobuttonlist,
checkboxlist controls from parameters in a table, and somehow manages to
maintain state (of data keyed in by user). However, the listbox that i
invoke on click of a help button does not maintain state (i am not
re-loading the list on postback , which is a usual problem). Does anybody
have any idea what could be the issue ? The only asp control i have defined
in the aspx page is the placeholder. All controls are being placed
dynamically on this placeholder. Only the listbox fails to maintain state,
though there is a autopostback = true on 'selectedindexchanged' event.

Thanks.




 
Reply With Quote
 
 
 
 
R
Guest
Posts: n/a
 
      08-23-2003
If you are creating controls at runtime you need to do so in LoadViewState
otherwise the events will not get hooked up.

R


"chak" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I have developed a form which dynamically builds textbox, radiobuttonlist,
> checkboxlist controls from parameters in a table, and somehow manages to
> maintain state (of data keyed in by user). However, the listbox that i
> invoke on click of a help button does not maintain state (i am not
> re-loading the list on postback , which is a usual problem). Does anybody
> have any idea what could be the issue ? The only asp control i have

defined
> in the aspx page is the placeholder. All controls are being placed
> dynamically on this placeholder. Only the listbox fails to maintain state,
> though there is a autopostback = true on 'selectedindexchanged' event.
>
> Thanks.
>
>
>
>



 
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
treview does not maintain state AR ASP .Net Web Controls 1 06-07-2006 12:41 PM
Build control in a placeholder or like a placeholder nail ASP .Net Building Controls 0 09-10-2004 07:57 PM
listcontrol, checkboxlist, radiobuttonlist, placeholder Elad Volpin ASP .Net 3 07-18-2004 05:22 AM
my DataSet does not maintain State after Postback Bruno Ferreira ASP .Net 0 11-06-2003 01:13 PM
Listbox on placeholder does not maintain state ? chak ASP .Net Web Controls 1 08-15-2003 01:50 AM



Advertisments