Home All Groups Group Topic Archive Search About
Author
6 Jan 2006 9:25 PM
Vi
Hi,
A question I always had: is ASP.NET smart enough to render the appropriate
HTML tags, JScript code and meta tags based on the client browser? I'm
referring to HTML code generated by ASP.NET Web Controls and by various .NET
classes.

Thank you

Author
6 Jan 2006 9:45 PM
Karl Seguin
ASP.NET has two modes of rendering, uplevel and downlevel rendering.  For
example, a Panel renders as a DIV in IE, but a table in firefox (even though
it shouldn't).  This is controllable via the web.config.

You can learn more at:
http://aspnet.4guysfromrolla.com/articles/050504-1.aspx

Karl

Show quoteHide quote
"Vi" <V*@discussions.microsoft.com> wrote in message
news:5B7CFD8C-E024-45AB-B996-5F8453BB12AE@microsoft.com...
> Hi,
> A question I always had: is ASP.NET smart enough to render the appropriate
> HTML tags, JScript code and meta tags based on the client browser? I'm
> referring to HTML code generated by ASP.NET Web Controls and by various
> .NET
> classes.
>
> Thank you
Are all your drivers up to date? click for free checkup

Author
6 Jan 2006 10:09 PM
Steve C. Orr [MVP, MCSD]
The answer is yes and no.
ASP.NET is smart enough to vary the output to different browsers so that it
won't emit HTML that the recieving browser (or device) doesn't support.
However, that doesn't mean that the page will appear perfectly the same in
every browser.  In fact, you can almost be guaranteed that it won't.  You
need to decide which browsers you're going to support and then test with
those browsers and tweak the output of your page as necessary.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



Show quoteHide quote
"Vi" <V*@discussions.microsoft.com> wrote in message
news:5B7CFD8C-E024-45AB-B996-5F8453BB12AE@microsoft.com...
> Hi,
> A question I always had: is ASP.NET smart enough to render the appropriate
> HTML tags, JScript code and meta tags based on the client browser? I'm
> referring to HTML code generated by ASP.NET Web Controls and by various
> .NET
> classes.
>
> Thank you

Bookmark and Share