954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

WebContentForms Creation

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):


)

cavpollo
Newbie Poster
18 posts since Sep 2009
Reputation Points: 10
Solved Threads: 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.

Ramesh S
Posting Pro
583 posts since Jun 2009
Reputation Points: 165
Solved Threads: 113
 

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.

cavpollo
Newbie Poster
18 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: