Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Asp:Panel rendering and ClientTarget

I have an Asp:Panel component that renders as a <div> for IE 6 and a <table> (one <tr>, one <td>) in Netscape 7.

For reasons relating to complicated CSS styling, I really need the panel to render as a <div> I have tried playing with ClientTarget and TargetSchema with no luck.

Any suggestions?  I guess I'd really like to just have .Net stop browser-sniffing and let me control the HTML.

steved
Wednesday, December 17, 2003

Put this in your web.config:

<configuration>
  <system.web>
      <browserCaps>
        tagwriter=System.Web.UI.HtmlTextWriter
      </browserCaps>
      ...

Duncan Smart
Wednesday, December 17, 2003

I works, thanks! :)

Vladimir
Saturday, February 28, 2004

*  Recent Topics

*  Fog Creek Home