I am creating dynamic controls like textbox, dropdowns in Page_Init
. After creating control I am binding data to the controls. When page postback happens I have to recreate the controls and rebind the data.
Is there any way I can cache the dynamically created control and just update the newest data to that control. For e.g. I Create the Textbox then set the value as "abc", when there is postback, i do not want to recreate the Textbox again, or just want to take the control from cache and want to update the latest value say "xyz" to that textbox.
Basically creating the controls first time, cache the control and bind latest data to control on postback.
Thanks Yogesh