User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 397,749 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,628 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 8618 | Replies: 5 | Solved
Reply
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 25
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

ASP.NET and Mozilla - Issues!

  #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!

<%@ 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?
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 25
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ASP.NET and Mozilla - Issues!

  #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

       <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>
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
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 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: ASP.NET and Mozilla - Issues!

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

ASP.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  
Join Date: Jul 2005
Posts: 1
Reputation: chiefwun is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
chiefwun chiefwun is offline Offline
Newbie Poster

Solution Re: ASP.NET and Mozilla - Issues!

  #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  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: ASP.NET and Mozilla - Issues!

  #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  
Join Date: Jul 2005
Location: Kansas City, Missouri
Posts: 17
Reputation: cambia is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
cambia's Avatar
cambia cambia is offline Offline
Newbie Poster

Re: ASP.NET and Mozilla - Issues!

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

Cheers,
Steve
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 3:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC