|
-
Jun 15th, 2009, 09:16 AM
#1
Thread Starter
Not NoteMe
Persisting ViewState on a dynamically created user control
I've got a user control that represents a Parameter for a report. It has controls to pick / type a value as well as a valuechanged event.
I want its value to be persisted across postbacks.
I've got a page which dynamically creates these controls based on the report the user wants to view.
In order to get the report parameters i need to access the page's ViewState.
From doing research it seems i need to create my dynamic controls before LoadViewState occurs, however if i try this obviously i don't have access to the viewstate in order to determine who many controls i should create.
I've tried adding them in the Page_Load event, but have had no luck getting values back from the control's viewstate.
Any help is very much appreciated.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|