Adding pageview dynamically to multipage
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Am trying to dynamically build a tab, multipage and pageview protected Microsoft.Web.UI.WebControls.TabStrip tc; protected Microsoft.Web.UI.WebControls.MultiPage mp; protected System.Web.UI.WebControls.Label txt; Microsoft.Web.UI.WebControls.Tab tab=new Microsoft.Web.UI.WebControls.Tab(); Microsoft.Web.UI.WebControls.PageView pv= new Microsoft.Web.UI.WebControls.PageView(); //Am building a control here and adding it to pv System.Web.UI.WebControls.TextBox txt= new TextBox(); txt.Text = "Microsoft"; pv.Controls.Add(txt); pv.ID = id.ToString(); tab.TargetID = pv.ID; Error: TargetID does not point to a valid PageView the tab.TargetID has to be set to pv.(something). can somebody help me on this? rmr
rmr