You could create a user control that uses the System.Web.UI.HtmlTextWriter to achieve this. I am not saying this is any better then Response.Write as you will still use alot of lines, for example to write out a <td> tag you would do something like:
hwriter.WriteBeginTag("td")
hwriter.WriteAttribute("width", "125")
hwriter.WriteAttribute("style", "background-color: #DDDDDD;font-family:Verdana, Times New Roman, Tahoma;font-size:12px;color: #000066;")
hwriter.WriteAttribute("valign", "top")
hwriter.Write(HtmlTextWriter.TagRightChar)
this will produce this when it is rendered:
<td width=125 style="background-color: #DDDDDD;font-family:Verdana, Times New Roman, Tahoma;font-size:12px;color: #000066;" valign=top>
So, essentially, you would build your entire layout inside of that Writer and then you would make this call:
MyBase.Render(hwriter) inside of the page render event.
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========