Skip to content

How can create dynamic Web Form on Button click under particular directory?

Sandeep Singh Shekhawat

Sandeep Singh Shekhawat

Asked Oct 18, 2012, 10:28 PM EDT1 answer
Share
LinkedInX
I have a web page which have 2 TextBoxes (1 for page title and another for page content) and a button. I want following functionality:

1. When click on Button a web form will create with first text box name(means TextBox1.Text+".aspx");

2. 2nd Textbox text should show as content of dynamic created page.

3. Dynamic created page should implement master page.

Please suggest process how can we implement this functionality?

Thanks
Sandeep

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Kaushal Suthar
    +1
    there is simple way i can tell you now..... Create a file in respected directory and give its related extension to it like (.html, .aspx etc..) create a private function which can write a source code of your needs (you have to define that in function or just store whole code inside string variable). After write successful just save it but you have to do this all thing in background for your application or website efficiency
    +1