Ask a Question related to ASP.NET Building Controls, Design and Development.
-
dickster #1
Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
Ok here's my scenario.
I have a Custom Composite Server Control (CCSC) consisting of a
TextBox, Button & Panel. (And some other code - which I will explain
later)
There is a button on the webform called ADD that "adds" as many of
these (CCSC) as you want.
OK it's straight forward to manage ViewState (i.e. the text entered
in the TextBox) of these dynamically added CCSC.
I do this based on the principle on PostBack of running the code that
created "x" number of my CCSC to the Control Hierarchy in the
Page_Init().
The ViewState then does its stuff later on down the Page Execution
LifeCycle to reset the Text property of each TextBox.
However my problem is this - my CCSC, depending on the Text entered
when the button (of the CCSC) is clicked dynamically adds either a
CheckBox or RadioButton in the Panel.
How on earth do I manage ViewState of either the CheckBox or
RadioButton.
i.e. there are 2 phases of Dynamic Creation.
I can post the code if required
Dickster
dickster Guest
-
Composite Web Control and Dynamically Created Children Controls.
Hi I am developing a web control which creates other web controls. During the OnInit of the my web control I read an Xml file which tells my web... -
events for dynamically created buttons nested in custom control
Similar questions to this have been raised. The answers I have read seem to imply that I have to inherit to a new class in order to accomplish my... -
Dynamically Created RadioButtonList Items & ViewState
I'm having a variation on the typical problem with saving ViewState of dynamically created web controls. I have two radiobuttonlist controls (call... -
disable viewstate of dynamically created checkboxes
Hello folks, in a usercontrol I create a table dynamically, and that table contains a lot of chekboxes. I have set enable viewstate property to... -
dynamically created control is not being validated
I have a user control that contains a custom control, both are loaded dynamically. The custom control has a simple required field validator and a...



Reply With Quote

