Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Don #1
viewstate restores data but selectedItem is restored late
I have a Web Custom Control that has a checkBoxList control added to
its control collection. This checkbox list control is initially
populated from the database but should use the viewState on subsequent
postbacks. Another control (I'll call it the parent)adds one of more
of these controls to its control collection.
In the control_load event of the parent contol I need to loop through
the items in the checkBoxList and preform and action if the item is
selected. On postback the item in the checkBoxList are restored by the
time the control_load event occurs. The problem is that there is no
selected items at this time. Once the page loads there is a check on
the page so it is preseving the selection.
I put a breakpoint in control_unload and at this point my checkbox has
a selectedItem.
I think the data is being restore before control_load but the selected
items are not restore until some later time, but before page_unload.
How can I access the selected values during page_load?
Don Guest
-
click one to image to change another (whichautomatically restores say after 500ms)
Could some one plzzzzz plzzzzzzz help me solve this problem ive been struggling with for the past few days. and it s very urgent. I want that when i... -
ViewState and posted back data
I'm adding a template column to a DataGrid dynamically: private void CreateColumn() { TemplateColumn col = new TemplateColumn(); ...//set some... -
passing selectedItem data from a component
I need help as I could not figure out my mistake ? I have main application page and two components. The main page calls for the first component to... -
Use label and ViewState with data binding funciton
I want to know how to dynamically bind the data in label field. My requirement is that I need to display a label with a data which is retrieved... -
Persisting DDL.SelectedValue or DDL.SelectedItem.Value without Viewstate
Use the forms collection. Something like Request.Form("myDDL") in VB. "Paul Aspinall" <paul@nospamaspy.co.uk> wrote in message...



Reply With Quote

