ASP.NET and Mozilla - Issues!

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

ASP.NET and Mozilla - Issues!

 
0
  #1
Aug 2nd, 2003
I have been playing around with Mozzila, and find it too be a rather nice speedy browser, but I do ASP.NET programming and such and seem to have some issues with ASP.NET pages displaying properly.

It seems to be with regards to coloring, I guess ASP controls as well
, since those are the things I have colored.


See example code below!

  1. <%@ Page Language="C#" %>
  2. <script runat="server">
  3.  
  4. // Insert page code here
  5. //
  6.  
  7. void Submit_Click_1(object sender, EventArgs e) {
  8. if (txtPassword.Text == "test")
  9. {
  10. Session["UserName"] = txtName.Text;
  11. //Response.Redirect("Test.aspx");
  12. Server.Transfer("Test.aspx");
  13. }
  14. else
  15. {
  16. lblFalse.Text = ("Incorrect Pasword Please try again");
  17. }
  18. }
  19.  
  20. </script>
  21. <html>
  22. <head>
  23. </head>
  24. <body>
  25. <p align="center">
  26. <asp:Label id="lblHeader" runat="server" head="head" height="25px" width="100%" backcolor="Black" forecolor="White" font-bold="true" text="ASPWEB Login Page" tooltip="Welcome to ASPWEB Login Page">ASPWEB
  27. Login Page</asp:Label>
  28. </p>
  29. <form runat="server">
  30. <!-- Insert content here -->
  31. <table cellspacing="15" align="center" sytle="font:10pt verdana;border-width:2;border-style:solid;border-color:black;">
  32. <tbody>
  33. <tr>
  34. <td>
  35. <b>UserName:</b>
  36. </td>
  37. <td>
  38. <asp:TextBox id="txtName" runat="server"></asp:TextBox>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td>
  43. <b>Password:</b>
  44. </td>
  45. <td>
  46. <asp:TextBox id="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
  47. </td>
  48. </tr>
  49. <tr colspan="2">
  50. <td>
  51. <asp:Button id="Submit" onclick="Submit_Click_1" runat="server" Text="Submit" Width="77px"></asp:Button>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </form>
  57. <div align="center"><asp:Label id="lblFalse" runat="server" width="843px" backcolor="White" font-bold="True" font-size="Medium"></asp:Label>
  58. </div>
  59. </body>
  60. </html>

Anyone have a solution? Recommendation?
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ASP.NET and Mozilla - Issues!

 
0
  #2
Aug 2nd, 2003
Well, I found some of the answer, but still not perfect. (see below). Anyone have any other suggestions?

What I did was add code (xml) to my web.config file in the <system.web> section

  1.  
  2. <browserCaps>
  3. <!--NETSCAPE 6 and 7 //-->
  4. <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+ )?Netscape[6|7]/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">
  5. tagwriter=System.Web.UI.HtmlTextWriter
  6. browser=Netscape
  7. version=${version}
  8. majorversion=${major}
  9. minorversion=${minor}
  10. frames=true
  11. tables=true
  12. cookies=true
  13. javascript=true
  14. javaapplets=true
  15. ecmascriptversion=1.5
  16. w3cdomversion=1.0
  17. css1=true
  18. css2=true
  19. xml=true
  20. </case>
  21. <!-- MOZILLA //-->
  22. <case match="^Mozilla/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">
  23. <case match="^[5-9]\." with="${version}">
  24. tagwriter=System.Web.UI.HtmlTextWriter
  25. </case>
  26. </case>
  27. <!--OPERA 5+//-->
  28. <case match="Opera[ /](?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
  29. <filter match="[4-9]" with="${major}">
  30. <filter match="[5-9]" with="${major}">
  31. tagwriter=System.Web.UI.HtmlTextWriter
  32. </filter>
  33. </filter>
  34. </case>
  35. </browserCaps>
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 27
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: ASP.NET and Mozilla - Issues!

 
0
  #3
Dec 25th, 2003
browserCaps are the way to go. Thats the same browserCaps section I use for #Portal lol.
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1
Reputation: chiefwun is an unknown quantity at this point 
Solved Threads: 1
chiefwun chiefwun is offline Offline
Newbie Poster

Re: ASP.NET and Mozilla - Issues!

 
0
  #4
Jul 15th, 2005
Great Tip. It worked perfect for the problem I had with listbox sizes, control placement without html tables (not asp:table) and for textbox sizing (i had already figured out column setting for those though).

Nothing else would have worked except for some table nesting structures for control placement of my asp.net web form.

Thanks a lot.

btw...is there anything for safari? I haven't actually tested it yet, but our graphic designers use Safari exclusively and they would also like to use this web application I'm building.

gary_it@yahoo.com
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: ASP.NET and Mozilla - Issues!

 
0
  #5
Jul 15th, 2005
browserCaps will also fix some of the HTML rendering issues. Panels will render as DIVs instead of Tables, etc. I've been meaning to write an article on browerCaps...
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 17
Reputation: cambia is an unknown quantity at this point 
Solved Threads: 3
cambia's Avatar
cambia cambia is offline Offline
Newbie Poster

Re: ASP.NET and Mozilla - Issues!

 
0
  #6
Jul 28th, 2005
Mozilla will render widths correctly if it comes from the style attribute or a stylesheet.

Cheers,
Steve
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC