| | |
ASP.NET and Mozilla - Issues!
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
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!
Anyone have a solution? Recommendation?
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!
ASP.NET Syntax (Toggle Plain Text)
<%@ Page Language="C#" %> <script runat="server"> // Insert page code here // void Submit_Click_1(object sender, EventArgs e) { if (txtPassword.Text == "test") { Session["UserName"] = txtName.Text; //Response.Redirect("Test.aspx"); Server.Transfer("Test.aspx"); } else { lblFalse.Text = ("Incorrect Pasword Please try again"); } } </script> <html> <head> </head> <body> <p align="center"> <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 Login Page</asp:Label> </p> <form runat="server"> <!-- Insert content here --> <table cellspacing="15" align="center" sytle="font:10pt verdana;border-width:2;border-style:solid;border-color:black;"> <tbody> <tr> <td> <b>UserName:</b> </td> <td> <asp:TextBox id="txtName" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <b>Password:</b> </td> <td> <asp:TextBox id="txtPassword" runat="server" TextMode="Password"></asp:TextBox> </td> </tr> <tr colspan="2"> <td> <asp:Button id="Submit" onclick="Submit_Click_1" runat="server" Text="Submit" Width="77px"></asp:Button> </td> </tr> </tbody> </table> </form> <div align="center"><asp:Label id="lblFalse" runat="server" width="843px" backcolor="White" font-bold="True" font-size="Medium"></asp:Label> </div> </body> </html>
Anyone have a solution? Recommendation?
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
What I did was add code (xml) to my web.config file in the <system.web> section
ASP.NET Syntax (Toggle Plain Text)
<browserCaps> <!--NETSCAPE 6 and 7 //--> <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+ )?Netscape[6|7]/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*"> tagwriter=System.Web.UI.HtmlTextWriter browser=Netscape version=${version} majorversion=${major} minorversion=${minor} frames=true tables=true cookies=true javascript=true javaapplets=true ecmascriptversion=1.5 w3cdomversion=1.0 css1=true css2=true xml=true </case> <!-- MOZILLA //--> <case match="^Mozilla/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*"> <case match="^[5-9]\." with="${version}"> tagwriter=System.Web.UI.HtmlTextWriter </case> </case> <!--OPERA 5+//--> <case match="Opera[ /](?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))"> <filter match="[4-9]" with="${major}"> <filter match="[5-9]" with="${major}"> tagwriter=System.Web.UI.HtmlTextWriter </filter> </filter> </case> </browserCaps>
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.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Solved Threads: 1
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
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
![]() |
Similar Threads
- ASP.Net perm full time programmer wanted (Web Development Job Offers)
- Front-End Developer with ASP.net needed!!! (Web Development Job Offers)
- Experience ASP.net with C# developer needed!! (Web Development Job Offers)
- ASP.Net / C# Web Developer (Web Development Job Offers)
- Question for ASP.NET/Mozilla Users...or anyone... (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: how to check mail address is exists or not
- Next Thread: I Need Sample ASP.NET Code
Views: 10926 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class complex control countryselector dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit editing embeddingactivexcontrol feedback fileuploader fill findcontrol flash folder form gridview gudi identity iis image javascript languages list listbox maps mobile mouse mssql nameisnotdeclared news novell numerical opera parent problem profile project radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows schoolproject search security select sessionvariables silverlight smoobjects software sql sql-server ssl theft tracking treeview validatedate validation vb.net videos vista visualstudio vs2008 web webapplications webdevelopment webprogramming wizard xsl






