Rendering no tables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joseba Alonso

    Rendering no tables

    Hi all,

    Im developing a custom user control that writes HTML like this:

    <code>
    writer.AddAttri bute("class","m enuItemactive") ;
    writer.RenderBe ginTag("div");
    writer.Write(te xt);
    writer.RenderEn dTag();
    </code>

    But when this is rendered in a not IE browser, it turned to a old-style
    table layout. I want my application rendering strict XHTML and no tables
    without care of user agent. There is a way to avoid this behaviour and make
    it render exactly what im telling it?

    TIA


    --
    Joseba Alonso
    PUBGTOTO dibangun dengan standar teknologi developer-grade untuk performa dan keamanan optimal. Platform togel modern dengan infrastruktur enterprise yang bisa diandalkan.



  • Natty Gur

    #2
    Re: Rendering no tables

    Hi,

    Create your HTML and append it to stringbuilder. this method will be
    faster and you are the only one controlling HTML rendering (no MS code
    that do it for you and change the output by the target browser).

    Natty Gur[MVP]

    blog : http://weblogs.asp.net/ngur
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    Working...