473,480 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Browsercaps 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

Expand|Select|Wrap|Line Numbers
  1. <asp:Label id="Label1" runat="server"  Width="100px" >I am quite a bit of text, 
  2.         overflowing and making my label wrap. If I could set the width on this control, 
  3.         I’d be mighty happy.
  4.         </asp:Label>
  5.  
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:
[HTML] <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>
[/HTML]
and the markup which is generated by firefox is as follows

[HTML]<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>
[/HTML]

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
Expand|Select|Wrap|Line Numbers
  1. <Browsercaps>  <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))?">
  2.               browser=Gecko
  3.               <filter>
  4.                   <case match="(Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))">
  5.                       type=${type}
  6.                   </case>
  7.                   <case>
  8.                       <!-- plain Mozilla if no VendorProductToken found -->
  9.                       type=Mozilla
  10.                   </case>
  11.               </filter>
  12.               frames=true
  13.               tables=true
  14.               cookies=true
  15.               javascript=true
  16.               javaapplets=true
  17.               ecmascriptversion=1.5
  18.               w3cdomversion=1.0
  19.               css1=true
  20.               css2=true
  21.               xml=true
  22.               tagwriter=System.Web.UI.HtmlTextWriter
  23.               <case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
  24.                   version=${version}
  25.                   majorversion=0${major}
  26.                   minorversion=0${minor}
  27.                   <case match="^b" with="${letters}">
  28.                       beta=true
  29.                   </case>
  30.               </case>
  31.           </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
1 1534
acoder
16,027 Recognized Expert Moderator MVP
Instead of "inline-block", you need to set it to "block".
Mar 26 '08 #2

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

Similar topics

10
2580
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
1106
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
1365
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
1808
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
2039
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
4580
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
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...
3
2790
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,...
0
1098
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...
0
7037
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
6904
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...
0
7034
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
7076
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...
1
6732
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
6886
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...
1
4768
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...
0
1294
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 ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.