|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET controls renderingHi,
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 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 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. 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
Other interesting topics
serialized binary files vs Sql Server Performance..
VS2005 - Unable to open local iis site other than localhost Firefox doesn't display ASP.NET Output a Grid (Table) from a Collection? Printing to a local printer Data Sources for ASP.Net Using ToolTip to store data Warn user that session expired? Cache per Thread Moving an XML node up or Down |
|||||||||||||||||||||||