Dynamic multipage
-
How do I create a multipage control dynamically? Microsoft.Web.UI.WebControls.TabStrip tabControl = new Microsoft.Web.UI.WebControls.TabStrip(); tabControl.ID = "tabcontrol1"; Microsoft.Web.UI.WebControls.MultiPage multipage1 = new Microsoft.Web.UI.WebControls.MultiPage(); multipage1.ID = "multipage1"; tabControl.TargetID = multipage1.ID ; Microsoft.Web.UI.WebControls.Tab tab=new Microsoft.Web.UI.WebControls.Tab(); tabControl.Items.Add(tab); lbl1 = new Label(); pageview1.Controls.Add(lbl1); multipage1.Controls.Add(pageview1); There is nothing coming out for this code. But, am able to create the multipage and tabstrip control at design time and get it working. But, I need them to be generated dynamically to call from another control. Please help
rmr