473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Browsercaps is not working

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: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.
</span>

and the markup which is generated by firefox is as follows

<span id="Label1" style="display:inline-block;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.
</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]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters' \w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters' \w*)))">
type=${type}
</case>
<case>
<!-- plain Mozilla if no VendorProductToken found -->
type=Mozilla
</case>
</filter>
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?'version'(?'major'\d+)(?'minor'\.\d+)(?' lette rs'\w*))">
version=${version}
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 1096

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

Similar topics

10
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...
0
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/...
1
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...
6
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...
10
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...
6
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...
0
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...
3
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,...
1
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...
0
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...
0
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
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...

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.