Rendering no tables

Discussion in 'ASP .Net' started by Joseba Alonso, Nov 18, 2003.

  1. Hi all,

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

    <code>
    writer.AddAttribute("class","menuItemactive");
    writer.RenderBeginTag("div");
    writer.Write(text);
    writer.RenderEndTag();
    </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
    www.sidedev.net
     
    Joseba Alonso, Nov 18, 2003
    #1
    1. Advertising

  2. Joseba Alonso

    Natty Gur Guest

    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!
     
    Natty Gur, Nov 19, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Bassett
    Replies:
    3
    Views:
    970
    Augustus
    Aug 15, 2003
  2. Otuatail

    Tables within tables

    Otuatail, Jul 31, 2004, in forum: HTML
    Replies:
    7
    Views:
    522
  3. Peter Mount
    Replies:
    4
    Views:
    1,003
    Peter Mount
    Jan 31, 2006
  4. UJ
    Replies:
    3
    Views:
    6,170
    Gaijin
    Jun 13, 2006
  5. James F. Kubecki

    Design Time Rendering Within Tables

    James F. Kubecki, Oct 23, 2003, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    185
    Andrew
    Nov 24, 2003
Loading...

Share This Page