473,545 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Browsercaps is not working

2 New Member
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>


In my system i am having ie 7 and firefox 2 browser.

After the page is rendered

The markup which is generated by ie7 is as follows:
<span id="Label1" style="display: inline-block;width:100 px;">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.
</span>

and the markup which is generated by firefox is as follows

<span id="Label1" style="display: inline-block;width:100 px;">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.
</span>


both markups are same.but the text is getting width 100px in ie7 ie working fine but in firefox is not getting.

I am getting the same result after adding <Browsercaps> <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProd uctToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'m ajor'\d+)(?'min or'\.\d+)(?'let ters' \w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-\d]+)(?'VendorProd uctToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'m ajor'\d+)(?'min or'\.\d+)(?'let ters' \w*)))">
type=${type}
</case>
<case>
<!-- plain Mozilla if no VendorProductTo ken found -->
type=Mozilla
</case>
</filter>
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?'vers ion'(?'major'\d +)(?'minor'\.\d +)(?'lette rs'\w*))">
version=${versi on}
majorversion=0$ {major}
minorversion=0$ {minor}
<case match="^b" with="${letters }">
beta=true
</case>
</case>
</case></Browsercaps> in <system.web> in machine.config as well as web.config.


I want the same look and feel in ie7,firefox ie6.
Please give me suggestions
Mar 25 '08 #1
0 1103

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2588
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
1110
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...
1
1370
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...
6
1816
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
2046
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?
6
4582
by: Jim_tvm | last post by:
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...
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...
3
2801
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...
1
1541
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. ...
0
7496
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...
0
7428
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7685
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. ...
0
7941
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7452
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...
0
7784
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...
1
5354
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...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
738
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...

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.