I want to create the dynamic page ,such as when i click button the web form,it create a
"dynamicpage.aspx" And this dynamicpage.aspx will load some of my usercontrol ?
Example my web app have top.ascx,bottom.ascx.
Can i insert exactly top.ascx,bottom.ascx into the dynamicpage.aspx.
Please give me some of advices or suggesstions !
Thank you very much.
Sorry for my bad explaining !!
My problem is not your guide.
I have a button and a textbox in my web form.
When i input "a1.aspx" text in the textbox.And i click this button ,it create dynamic page ,form a1.aspx
When i input "a2.aspx" text in the textbox.And i click this button ,it create dynamic page ,form a2.aspx
... and so on
And a1.aspx will load some of my usercontrols ,and then it is inserted my desired location.
May be the top of page, or bottom of page ....
Is it ok ?
Thank you very much.
pamyral_279
Participant
1469 Points
514 Posts
How can i create the dynamic page ?
Nov 01, 2005 09:25 AM|LINK
And this dynamicpage.aspx will load some of my usercontrol ?
Example my web app have top.ascx,bottom.ascx.
Can i insert exactly top.ascx,bottom.ascx into the dynamicpage.aspx.
Please give me some of advices or suggesstions !
Thank you very much.
Entity
Member
16 Points
7 Posts
Re: How can i create the dynamic page ?
Nov 01, 2005 10:51 AM|LINK
in the CodeBehind you have to load the ascx-Files into the PlaceHolder or into the Panel.
Example:
Dim control as UserControl
control = Me.LoadControl("fileName.ascx")
control.id = "fileName"
Me.myPanel.Controls.Add(control)
pamyral_279
Participant
1469 Points
514 Posts
Re: How can i create the dynamic page ?
Nov 01, 2005 03:45 PM|LINK
My problem is not your guide.
I have a button and a textbox in my web form.
When i input "a1.aspx" text in the textbox.And i click this button ,it create dynamic page ,form a1.aspx
When i input "a2.aspx" text in the textbox.And i click this button ,it create dynamic page ,form a2.aspx
... and so on
And a1.aspx will load some of my usercontrols ,and then it is inserted my desired location.
May be the top of page, or bottom of page ....
Is it ok ?
Thank you very much.
pamyral_279
Participant
1469 Points
514 Posts
Re: How can i create the dynamic page ?
Nov 02, 2005 03:09 PM|LINK
Any one help me ,please?
Thank you very much.