0

Hi there,
I got an empty Web content form that contains the content of a master page. When oen fo the buttons on the form is pressed im required to create a new window to show the result. How can I create that new window without actually having to add a new WebContentForm on the solution Explorer (and by that I mean what code should I type in order for me to create a form and make it visible to the user. Dynamically)?

(is there any solution like when you dynamically create a new button? like for example:

button name = new button (); Controls.add(name):

)

Edited by cavpollo: n/a

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by cavpollo
0

Basically an aspx page will have controls like buttons and textboxes associated with them. Also the page will have a class file associated with it to handle the events related to the page.

If you want to create an aspx page dynamically, you cannot maintain the page alignment, controls and events related to the page. And also you cannot create an instance of a web page and dispaly it just like button control.

Although somewhat you can manage to create an aspx page dymaically using StreamWriter classes but it is not adviceable.

0

Basically an aspx page will have controls like buttons and textboxes associated with them. Also the page will have a class file associated with it to handle the events related to the page.

If you want to create an aspx page dynamically, you cannot maintain the page alignment, controls and events related to the page. And also you cannot create an instance of a web page and dispaly it just like button control.

Although somewhat you can manage to create an aspx page dymaically using StreamWriter classes but it is not adviceable.

Found another way to do it.

Thanks for the advice though.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.