944,183 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1513
  • ASP.NET RSS
Sep 29th, 2009
0

WebContentForms Creation

Expand Post »
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:
c# Syntax (Toggle Plain Text)
  1. button name = new button (); Controls.add(name):
)
Last edited by cavpollo; Sep 29th, 2009 at 6:39 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cavpollo is offline Offline
18 posts
since Sep 2009
Sep 30th, 2009
0

Re: WebContentForms Creation

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.
Reputation Points: 165
Solved Threads: 113
Posting Pro
Ramesh S is offline Offline
580 posts
since Jun 2009
Jan 11th, 2011
0
Re: WebContentForms Creation
Click to Expand / Collapse  Quote originally posted by Ramesh S ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cavpollo is offline Offline
18 posts
since Sep 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Asp.net exe file
Next Thread in ASP.NET Forum Timeline: How does one retrieve a function return value from Default.aspx (C#)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC