Web Controls and XHTML

Discussion in 'ASP .Net Web Controls' started by Joseba Alonso, Nov 14, 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 14, 2003
    #1
    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. Replies:
    7
    Views:
    851
  2. chronos3d
    Replies:
    9
    Views:
    748
    Andy Dingley
    Dec 5, 2006
  3. Usha2009
    Replies:
    0
    Views:
    1,112
    Usha2009
    Dec 20, 2009
  4. xhtml champs
    Replies:
    0
    Views:
    438
    xhtml champs
    Aug 1, 2011
  5. xhtml champs
    Replies:
    0
    Views:
    1,007
    xhtml champs
    Aug 2, 2011
Loading...

Share This Page