Yik - ASP.NET is NOT Firefox friendly!

Y

YeeCN

Hi,

To my great dismay and disgust - I just discovered that ASP.NET is rendering
the aspx pages differently for the Firefox browser - with disastrous
results.

Below are the renderings of a TextBox for IE and Firefox browsers
respectively:
<input name="txtName" type="text" value="abcd" id="txtName"
style="width:464px;Z-INDEX: 114; LEFT: 80px; POSITION: absolute; TOP: 32px"
/><input name="txtName" type="text" value="abcd" id="txtName"
style="Z-INDEX: 114; LEFT: 80px; POSITION: absolute; TOP: 32px" />
As you can see the "width" attribute is being left out for Firefox. I
check - Firefox is able to display the page rendered for IE properly.Is
Firefox being treated as a second class browser or what?I am really
disgusted.Regards,Yee
 
I

Ian Murphy

While I am certainly no expert on the subject I don't think firefox is
being targeting. Firefox is a new browser, and is probably being treated as
a generic browser, since firefor didn't exist when .net 1.1 was released.

If you search around the net you should be able to find an update to
machine.config which reflects firefox's capabilitys.

Take a look at
c:\windows\microsoft.net\framework\v1.1.4322\config\machine.config

and search down to the browser section.

I haven't found firefox treated particularly differently to IE. Width
treatment will be different, simply because IE doesn't always treat the
width parameter as it should, but this is a recognised problem.

Regards

Ian
 
O

Ollie Riches

check out this article it will tell you how to add support for firefox
browser to application.config or machine.config

http://aspnet.4guysfromrolla.com/articles/050504-1.aspx

If you are using a datagrid or datalist you will want to set the 'GridLines'
property explicitly to turn off gridlines in firefox.

These are all the changes I had to make toget firefox to work correctly with
my site.

HTH

Ollie Riches
 
G

Guest

Hello there.
A bit of a shock when you tried it hey :)
On my site I have the code for the config section that will render about 90%
of stuff well in firefox.

www.tirnaog.com
Look in the forums under the Code Vault section.
In the VB. net there is a heading:
Getting your .NET site to look better in NON IE browsers!

Hope this helps,
Deasun
 
M

Mark Oliver

Thanks Ollie Riches & Deasun! I was wondering if i was using the right
tool when i saw my site in Firefox. With you tips now it looks great.
Being a newby i first put the <browserCaps> tag under <configuration>, that
didn't work, until i tried it under <system.web>.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top