473,804 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BrowserCaps

I'm very new to web development using ASP.NET. I'm developing a site
using ASP.NET. My site looks fine if you use IE but if you open it in
NS it's not displaying properly. And this display will very for
different versions of NS also.

Finally after a long search I found some article about browserCaps for
machine config. I was not in a position to use this technique. i.e.,
modifying the machine config, (even though it's not working in my own
system) coz I'm going to upload the things in a remote server and I
have no other option other than uploading the things. So the option
left for me is to modify the web.config file. I copied the Netscape
section from browsercaps of machine config to the web.config. But
still it's not working.

Is it due to any version issue? My current asp.net version is 1.1.

These are the links I refered

http://www.codeproject.com/aspnet/browsercaps.asp
http://www.garykeith.com/browsers/
http://www.cyscape.com/browsercaps/

please helps me in this issue.
Thankx in advance
jim
Nov 18 '05 #1
6 4592
Hi,

It's because your HTML is not W3C Compliant.
For more information on how to display properly HTML visit
http://www.w3.org/TR/html4/
Beware of the HTML and CSS generated by VS.NET.
You can validate your HTML pages here http://validator.w3.org/

Hope this Helps!
Franck Quintana.

"Jim_tvm" <ji*******@gmai l.com> wrote in message
news:18******** *************** **@posting.goog le.com...
| I'm very new to web development using ASP.NET. I'm developing a site
| using ASP.NET. My site looks fine if you use IE but if you open it in
| NS it's not displaying properly. And this display will very for
| different versions of NS also.
|
| Finally after a long search I found some article about browserCaps for
| machine config. I was not in a position to use this technique. i.e.,
| modifying the machine config, (even though it's not working in my own
| system) coz I'm going to upload the things in a remote server and I
| have no other option other than uploading the things. So the option
| left for me is to modify the web.config file. I copied the Netscape
| section from browsercaps of machine config to the web.config. But
| still it's not working.
|
| Is it due to any version issue? My current asp.net version is 1.1.
|
| These are the links I refered
|
| http://www.codeproject.com/aspnet/browsercaps.asp
| http://www.garykeith.com/browsers/
| http://www.cyscape.com/browsercaps/
|
| please helps me in this issue.
| Thankx in advance
| jim

Nov 18 '05 #2
Put the following code in the bottom of web.config before the </system.web>
tag
<!-- 2003-12-03, Rob Eberhardt -
http://slingfive.com/pages/code/browserCaps/ -->

<browserCaps>
<!-- GECKO Based Browsers (Netscape 6+, Mozilla/Firebird, ...) //-->
<case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)?
(?'type'[^/\d]*)([\d]*)/(?'version'(?'m ajor'\d+)(?'min or'\.\d+)(?'let ters'\w*)).*">
browser=Gecko
type=${type}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=tru e
ecmascriptversi on=1.5
w3cdomversion=1 .0
css1=true
css2=true
xml=true
tagwriter=Syste m.Web.UI.HtmlTe xtWriter
<case
match="rv:(?'ve rsion'(?'major' \d+)(?'minor'\. \d+)(?'letters' \w*))">
version=${versi on}
majorversion=${ major}
minorversion=${ minor}
<case match="^b" with="${letters }">
beta=true
</case>
</case>
</case>

<!-- AppleWebKit Based Browsers (Safari...) //-->
<case
match="AppleWeb Kit/(?'version'(?'m ajor'\d)(?'mino r'\d+)(?'letter s'\w*))">
browser=AppleWe bKit
version=${versi on}
majorversion=${ major}
minorversion=0. ${minor}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=tru e
ecmascriptversi on=1.5
w3cdomversion=1 .0
css1=true
css2=true
xml=true
tagwriter=Syste m.Web.UI.HtmlTe xtWriter
<case
match="AppleWeb Kit/(?'version'(?'m ajor'\d)(?'mino r'\d+)(?'letter s'\w*))(
\(KHTML, like Gecko\) )?(?'type'[^/\d]*)/.*$">
type=${type}
</case>
</case>

<!-- Konqueror //-->
<case
match="Konquero r/(?'version'(?'m ajor'\d+)(?'min or'\.\d+)(?'let ters'));\w*(?'p latform'[^\)]*)">
browser=Konquer or
version=${versi on}
majorversion=${ major}
minorversion=${ minor}
platform=${plat form}
type=Konqueror
frames=true
tables=true
cookies=true
javascript=true
javaapplets=tru e
ecmascriptversi on=1.5
w3cdomversion=1 .0
css1=true
css2=true
xml=true
tagwriter=Syste m.Web.UI.HtmlTe xtWriter
</case>

<!-- OPERA 5+ //-->
<case match="Opera[
/](?'version'(?'m ajor'\d+)(?'min or'\.\d+)(?'let ters'\w*))">
browser=Opera
type=${type}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=tru e
ecmascriptversi on=1.5
w3cdomversion=1 .0
css1=true
css2=true
xml=true
tagwriter=Syste m.Web.UI.HtmlTe xtWriter
<case
match="rv:(?'ve rsion'(?'major' \d+)(?'minor'\. \d+)(?'letters' \w*))">
version=${versi on}
majorversion=${ major}
minorversion=${ minor}
<case match="^b" with="${letters }">
beta=true
</case>
</case>
</case>

</browserCaps>
Nov 18 '05 #3
I don't understand this XML node.
Is it a special node used to make an ASP.NET code compatible?

Thank you.
Franck Quintana
Nov 18 '05 #4
Yes, it makes ASP.NET code work in Firefox, Opera, Safari, Knoquerer, WebTV
etc. Without it, the code only works in IE and Netscape 4 and 6. All other
browsers will be treated as IE 3.
"Franck Quintana" <la*****@wanado o.fr> wrote in message
news:41******** **************@ read.news.fr.uu .net...
I don't understand this XML node.
Is it a special node used to make an ASP.NET code compatible?

Thank you.
Franck Quintana

Nov 18 '05 #5
Thankx for your help.i tried with the browsercaps things which you
provided. but still i have the same issues with images and the style.
i think the % things are not taking by down level browsers. What to
do?

With regards
Jimmy
Nov 18 '05 #6
Thankx for ur helps and links.as u said i checked my site with the
link which u provided but the thing is it's showing error for the
things like not specified the alt for an image something like that.
According my knowledge we can make the things perfect by making some
compromises in style and attributes we specified for the tags. But if
we have some solutions like browsercaps it's very useful.

Thanku very much
With regards
Jimmy
Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2610
by: Jason Collins | last post by:
There are some Requests that occur that have a NULL UserAgent. Some of these are legitimate crawlers (e.g., Overture's crawler), and I'm attempting to adjust my <browserCaps> to correctly classify crawlers. In an attempt to capture browsers with (UserAgent == null), I've added a case like this: <filter> <case match="^$"> crawler=true
0
1123
by: Earl Teigrob | last post by:
I am looking for updated code for the browsercaps section of machine.config(or webconfig) that that adds support for non-microsoft browsers. I have read about http://www.cyscape.com/browsercaps/ but there site says they are creating a new version and to come back latter. Does anyone have a copy of this that they could post for me? That would help me sooo much! Thanks Earl
1
1382
by: Andy Emmerson via .NET 247 | last post by:
Hi I am looking to write a custom section handler so that I can populate the MobileCapabilities object from my our custom data rather than the browserCaps section in machine.config. From my understanding (limited) it looks like you can implement the IConfigurationSectionHandler and use the IConfigurationSectionHandler.Create to intercept this functionality. It looks like I need to return a MobileCapabilities object from this function. How...
6
1832
by: Eric | last post by:
Hi, Why there is no <browserCaps> section, which is correct? I understand that Netscape and others are 'DownLevel' browser, but in my case, also the PocketIE on my Ipaq and Opera browser for SmartPhone are reconized wrong (IsMobileDevice = false). From where or how I get the a configuration which works? Thanks
10
2065
by: Eric | last post by:
Hi, Why there is no <browserCaps> section, which is correct? I understand that Netscape and others are 'DownLevel' browser, but in my case, also the PocketIE on my Ipaq and Opera browser for SmartPhone are reconized wrong (IsMobileDevice = false). From where or how I get the a configuration which works?
0
301
by: sujan | last post by:
Hi all, I'm very new to web development using ASP.NET. I'm developing a site using ASP.NET. My site looks fine if you use IE but if you open it in NS it's not displaying properly. And this display will very for different versions of NS also. Finally after a long search I found some article about browserCaps for machine config. I was not in a position to use this technique. i.e., modifying the machine config, (even though it's not...
3
2828
by: Lee Chapman | last post by:
Hi, I want my ASP.NET web application to use a custom HtmlTextWriter. i.e. I want the object that the Framework passes to System.Web.UI.Control.Render() to be my own object, MyHtmlTextWriter, which inherits from System.Web.UI.HtmlTextWriter. I have tried to do this by changing my application's web.config file: I've added the following to the /configuration/system.web section.
1
1550
by: prasad9490024564 | last post by:
Hi Team, We are developing crossbrowsing type application with asp.net2.0 In my page i am having server side label control <asp:Label id="Label1" runat="server" Width="100px" >I am quite a bit of text, overflowing and making my label wrap. If I could set the width on this control, I’d be mighty happy. </asp:Label>
0
1116
by: prasad9490024564 | last post by:
Hi Team, We are developing crossbrowsing type application with asp.net2.0 In my page i am having server side label control <asp:Label id="Label1" runat="server" Width="100px" >I am quite a bit of text, overflowing and making my label wrap. If I could set the width on this control, I’d be mighty happy. </asp:Label>
0
9711
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10594
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10331
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.