Groups | Blog | Home
all groups > asp.net webcontrols > october 2003 >

asp.net webcontrols : MultiPage Control????


Jim Beatty
10/6/2003 1:55:27 PM
Hello All,

I need to know if anyone has ever come across the need
to generate multiple pages under the multipage control.
Like an array within an array so to speak. I am wondering
if anyone has done something similar or knows of a way to
do it. I'm thinking about just creating a custom control.
Any thoughts on that? Drop a line to the group.

Praveen Jhurani
11/9/2003 11:32:35 PM
Yes I have come across this kind of need and in process.
But yes you can do this. Here is some sample code which works.

Assuming you would add Multipage control during design time.
So now in your code behind file either in Page_Load or any appropriate
funtion you can do

PageView pv = new PageView();
pv.ID="p1";
MultiPage.Controls.Add(pv);

So this would in runtime add a pageview to a multipage control.

Hope this helps

Praveen Jhurani





*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button