Codeless Posted August 13, 2003 Posted August 13, 2003 What is the easiest way (when using ASP.NET) to generate html like other popular pre-processors such as php? I must be missing something. Quote Codeless ...it just goes on and on.
*Experts* mutant Posted August 13, 2003 *Experts* Posted August 13, 2003 Do you mean writing HTML to the page so the results of the html you added are displayed when page is rendered? Quote
Codeless Posted August 13, 2003 Author Posted August 13, 2003 Exactly. Quote Codeless ...it just goes on and on.
*Experts* mutant Posted August 13, 2003 *Experts* Posted August 13, 2003 Use the response object: Response.Write("your text or html here") Quote
Codeless Posted August 13, 2003 Author Posted August 13, 2003 Ok, so lets say I have some html that will depend on some user input. I can simply use a function to get the information that I need and post it in a response object. I'm beginning to get the picture. So if I want to have a specific header on every page on my site I can just call a function that has the proper response.write statements everytime I create the page. Is this the idea? Quote Codeless ...it just goes on and on.
*Experts* mutant Posted August 13, 2003 *Experts* Posted August 13, 2003 If you want a specific thing for different pages then using web controls would be better and much easier to manage. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.