Dynamic controls postback updatepanel

rounleri

New Member
I have a page of dynamic controls including textboxes, radiobuttons, checkboxes (all bind to a Panel).I run my create control function on Page_init function.So i have something like:\[code\] protected void Page_Init(object sender, EventArgs e) { PopulateControls(); } protected void PopulateControls() { .... for (int j = 0; j < dt.Rows.Count; j++) { ...create dynamic controls } Panel1.Controls.Add(dynamic controls); }\[/code\]On postback (e.g. when i uncheck a checkbox) the screen jumps to the top. Normally, when I am not using dynamic controls, I just put UpdatePanel/ContentTemplate around each of the control. But since I am not able to do that now, is there a way to stop the page from jumping to the top on postback?Thanks!
 
Back
Top