asp:panel [modified]
-
Hiya all. It seems the asp:panel "transforms" to a table when viewed in FireFox, does anybody have any idea as to why this occurs? I've never used asp:panel much, but was tasked with debugging some code somebody else had made, when I found out it was because the images were positioned in a table, which ... originated from asp:panel, and FireFox. When rendered in IE it displays "right", however I can not find any indications as to why this difference exists? Exampel:hello
goodbye (The div+span were just stuff I used to testing) This renders to the following html source in FireFox:
hello
goodbye
but to this in IE:
hello
goodbye
Anybody got some idea as to why this happens? (edit:whops forgot to ignore html tags) --------------------------- 127.0.0.1 - Sweet 127.0.0.1 -- modified at 6:08 Wednesday 28th June, 2006
-
Hiya all. It seems the asp:panel "transforms" to a table when viewed in FireFox, does anybody have any idea as to why this occurs? I've never used asp:panel much, but was tasked with debugging some code somebody else had made, when I found out it was because the images were positioned in a table, which ... originated from asp:panel, and FireFox. When rendered in IE it displays "right", however I can not find any indications as to why this difference exists? Exampel:hello
goodbye (The div+span were just stuff I used to testing) This renders to the following html source in FireFox:
hello
goodbye
but to this in IE:
hello
goodbye
Anybody got some idea as to why this happens? (edit:whops forgot to ignore html tags) --------------------------- 127.0.0.1 - Sweet 127.0.0.1 -- modified at 6:08 Wednesday 28th June, 2006
I guess that the ASP.NET is running on the 1.x version. In the version 1.x, the ASP.NET treats non-Microsoft browsers like FF as down-level browsers and IE as up-level browser. And depending on which client browser is being used, the ASP.NET control renders differently with the specified writer object (either HtmlTextWriter or Html32TextWriter). In the version 2.0, the ASP.NET treats non-Microsoft browsers as IE, so this thing won't happen. For more information, you can see Adaptive Rendering[^]
-
I guess that the ASP.NET is running on the 1.x version. In the version 1.x, the ASP.NET treats non-Microsoft browsers like FF as down-level browsers and IE as up-level browser. And depending on which client browser is being used, the ASP.NET control renders differently with the specified writer object (either HtmlTextWriter or Html32TextWriter). In the version 2.0, the ASP.NET treats non-Microsoft browsers as IE, so this thing won't happen. For more information, you can see Adaptive Rendering[^]
-
Thanks for the reply. I'll be sure to read the linky when I have a little spare time :) --------------------------- 127.0.0.1 - Sweet 127.0.0.1