How can i create an aspx page dynamically
-
i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?
G. Satish
-
i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?
G. Satish
-
what ignore man? have u studied my question? what i have reposted? It is better to think about the question what i have asked but not the way already some one posted this ...like this..
G. Satish
-
why u change the color of my question? This is not a good way. I am asking different questions always. Read one or two times before doing this
G. Satish
-
i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?
G. Satish
Satish - Developer wrote:
"Generate Page" buttton. When i click on it, it generates a webpage with custom name.
ASPX pages are normal files with markup and necessary page directives. So you can use
StreamWriter
/FileStream
to create a file with ASPX extension. BTW, why you need to do this ?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Satish - Developer wrote:
"Generate Page" buttton. When i click on it, it generates a webpage with custom name.
ASPX pages are normal files with markup and necessary page directives. So you can use
StreamWriter
/FileStream
to create a file with ASPX extension. BTW, why you need to do this ?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
why i need means, i need to generate this aspx pages in 1000's for search engine optimization.. some of the content has been changed while creating a page.
G. Satish
-
i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?
G. Satish
Do you want to generate user specific code dynamically and display it on the webpage. With HTML formatting in it??? If I am Right... in .aspx page (This page is common for all the Customers)in .aspx.cs page string t = ........; //Pass client specific data here. you can also use HTML taga as u wish for formatting the data. Use stringbuilder if you have........... ClientBody.InnerHtml = Server.HtmlDecode(t); // to display in .aspx page ~JJ
-
why u change the color of my question? This is not a good way. I am asking different questions always. Read one or two times before doing this
G. Satish
Satish - Developer wrote:
why u change the color of my question?
A message becomes bright red when it is high-voted or dimmed (grayed) when it is low voted. On the lighter vein, if you still want to find out who changed the color of your question, I would suggest you the following: [JOKE] You ought to ask it to CP Design Team. [/JOKE]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
why i need means, i need to generate this aspx pages in 1000's for search engine optimization.. some of the content has been changed while creating a page.
G. Satish
Satish - Developer wrote:
i need to generate this aspx pages in 1000's for search engine optimization
Ahh, you are lost totally. Have you ever though about maintaining the pages when something changes ? This is not the right way to go. Try URL rewriting instead.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions