G
Guest
Hi,
In ASP.net 2.0 I make a control which add the same controls dynamically. In
the oninit event I add the controls to the controls collection. After that
the loadviewstate event fills in the information on postbacks. The control
can add and delete controls that is why on the postback I don't know how many
controls there are.
At the moment I am able to get the controls rendering but I have problems to
save the count of the dynamic controls. I don't know where I can save the
number of controls. For the moment I have saved the count in Sessionstate but
that is not what I want.
I have tried to save it in controlstate but that does not work because in
the oninit I cannot use it.
My question is what is the best way to save the count of the controls.
Greetings,
JP
In ASP.net 2.0 I make a control which add the same controls dynamically. In
the oninit event I add the controls to the controls collection. After that
the loadviewstate event fills in the information on postbacks. The control
can add and delete controls that is why on the postback I don't know how many
controls there are.
At the moment I am able to get the controls rendering but I have problems to
save the count of the dynamic controls. I don't know where I can save the
number of controls. For the moment I have saved the count in Sessionstate but
that is not what I want.
I have tried to save it in controlstate but that does not work because in
the oninit I cannot use it.
My question is what is the best way to save the count of the controls.
Greetings,
JP