All,
I have created some ASP.NET/C# webpages that displays pefectly in internet
explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not
display correctly i.e the text and text boxes for example dont line up they
are smaller in size.
Does anyone now why this is happening and how I can make it look as it does
in IE6.0
Thanks
Msuk 6 2226
Hi,
It may depend of how you builded the page, did you used the designer or
just created the code in the editor? if you used the designer maybe some of
the DHTML generated are not compatibles with NS , also check that the code
is correctyl written, that all start tag has a corresponding ending tag for
example, NS is particulary picky with that.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com... All,
I have created some ASP.NET/C# webpages that displays pefectly in internet explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not display correctly i.e the text and text boxes for example dont line up they are smaller in size.
Does anyone now why this is happening and how I can make it look as it does in IE6.0
Thanks Msuk
Hi,
I used VS2003 and dragged and dropped the controls onto the page. I didnt
write any HTML code at all. What can I do to overcome this?
I thought .NET was able to work with any browser with the same results.
Thanks
Msuk
"Ignacio Machin ( .NET/ C# MVP )" wrote: Hi,
It may depend of how you builded the page, did you used the designer or just created the code in the editor? if you used the designer maybe some of the DHTML generated are not compatibles with NS , also check that the code is correctyl written, that all start tag has a corresponding ending tag for example, NS is particulary picky with that. Cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"msuk" <ms**@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... All,
I have created some ASP.NET/C# webpages that displays pefectly in internet explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not display correctly i.e the text and text boxes for example dont line up they are smaller in size.
Does anyone now why this is happening and how I can make it look as it does in IE6.0
Thanks Msuk
Hi,
.NET has nothing to do with that really, it depends of the code that VS
generate to position the controls in the page, I have never used this
approach( always write code ) but I bet you it's there where the problem
lies,
how to solve it?
The first step is to put the page layout from grid layout to flow layout,
you have more restriction of how you place your controls but it's more
standard the code generated
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com... Hi,
I used VS2003 and dragged and dropped the controls onto the page. I didnt write any HTML code at all. What can I do to overcome this?
I thought .NET was able to work with any browser with the same results.
Thanks Msuk
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
It may depend of how you builded the page, did you used the designer or just created the code in the editor? if you used the designer maybe some of the DHTML generated are not compatibles with NS , also check that the code is correctyl written, that all start tag has a corresponding ending tag for example, NS is particulary picky with that. Cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"msuk" <ms**@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... > All, > > I have created some ASP.NET/C# webpages that displays pefectly in > internet > explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does > not > display correctly i.e the text and text boxes for example dont line up > they > are smaller in size. > > Does anyone now why this is happening and how I can make it look as it > does > in IE6.0 > > Thanks > Msuk
In general the asp.net controls treat browsers other than IE as 3.2
compliant browsers.
You can override this behaviour with some settings in your webconfig.
Basically you allow per user agent wich html gets generated.
OTOMH look for <clientTarget> and|or useragent in the asp.net
documents
martin
ASP.NET does not recognize Firefox. Therefore it treats it as a downlevel
browser. To change this you must update the browser capabilitu settings.
This can be done in the web.config file or in the machine.config file. I
recommend the later.
Adding the following snippet to the system.web element in machine.config
should get you sorted:
<browserCaps>
<case match="Gecko/[-\d]+">
browser=Netscape
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:1.0[^\.](?'letters'\w*)">
version=6.0
majorversion=6
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
<case match="rv:1(\.\d+)(\.\d)?(?'letters'\w*)">
version=7.0
majorversion=7
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps>
You can find updated browsercaps definitions here: http://slingfive.com/pages/code/browserCaps/
Anders Norås
blog: http://dotnetjunkies.com/weblog/anoras
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com... All,
I have created some ASP.NET/C# webpages that displays pefectly in internet explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not display correctly i.e the text and text boxes for example dont line up they are smaller in size.
Does anyone now why this is happening and how I can make it look as it does in IE6.0
Thanks Msuk
Hi,
thanks for your response, is the snippet just for Netscape or will it handle
Firefox as well? Also looking through your website can you explain what the
difference is between 'updated BrowserCaps with tabs' and 'updated
BrowserCaps with spaces'
Thanks
Msuk
"Anders Norås" wrote: ASP.NET does not recognize Firefox. Therefore it treats it as a downlevel browser. To change this you must update the browser capabilitu settings. This can be done in the web.config file or in the machine.config file. I recommend the later. Adding the following snippet to the system.web element in machine.config should get you sorted: <browserCaps> <case match="Gecko/[-\d]+"> browser=Netscape frames=true tables=true cookies=true javascript=true javaapplets=true ecmascriptversion=1.5 w3cdomversion=1.0 css1=true css2=true xml=true tagwriter=System.Web.UI.HtmlTextWriter <case match="rv:1.0[^\.](?'letters'\w*)"> version=6.0 majorversion=6 minorversion=0 <case match="^b" with="${letters}"> beta=true </case> </case> <case match="rv:1(\.\d+)(\.\d)?(?'letters'\w*)"> version=7.0 majorversion=7 minorversion=0 <case match="^b" with="${letters}"> beta=true </case> </case> </case> </browserCaps>
You can find updated browsercaps definitions here: http://slingfive.com/pages/code/browserCaps/
Anders Norås blog: http://dotnetjunkies.com/weblog/anoras "msuk" <ms**@discussions.microsoft.com> wrote in message news:D9**********************************@microsof t.com... All,
I have created some ASP.NET/C# webpages that displays pefectly in internet explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not display correctly i.e the text and text boxes for example dont line up they are smaller in size.
Does anyone now why this is happening and how I can make it look as it does in IE6.0
Thanks Msuk This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Geoff |
last post by:
When trying to focus a field in Firefox, I get the following error:
Error: " nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::...
|
by: christian9997 |
last post by:
Hi
I would be very helpful if someone could help me with this code.
It works fine in IE but when I display it in Netscape or Firefox and I
move the mouse from one menu to the other the gap...
|
by: RC |
last post by:
I know DTD (Document Type Definition) is supported by
Netscape/Firefox and IE.
But I typed some examples from
http://www.w3schools.com/schema/default.asp
Seems no effect on those browsers.
|
by: Laurent Compere |
last post by:
Hi all,
I try to make a logo fade in. I wrote the code below that is simple and
supposed to be compatible with IE6,Firefox and Netscape.
It works pretty well under IE6 but under Firefox and...
|
by: Arne |
last post by:
I have a dropdownlist/select box with an autopostback to code behind.
It works great in Internet Explorer, but doesn't work in Netscape and Firefox.
What kind of support does ASP.net promise for...
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not
working:
>>> import webbrowser
>>>...
|
by: Dobedani |
last post by:
Dear All,
I found the code added below at:
http://simplythebest.net/sounds/sound_guide.html
Unfortunately, the code doesn't seem to work in Firefox. These are the
error messages I can see in...
|
by: Martijn Saly |
last post by:
I'd like to test in my script, if it's going to be possible to enable
priviliges.
If I use this...
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
....it presents a...
|
by: scotty |
last post by:
I have a script that loops through an existing table list and prepares
each href element node to trigger a function when an image is
clicked. The function that will be run passes a property value...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |