473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ 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: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>
[/HTML]
and the markup which is generated by firefox is as follows

[HTML]<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>
[/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 1549
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
2606
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
1122
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
1379
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
1829
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
2063
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
4591
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 position to use this technique. i.e., modifying the machine config, (even though it's not working in my...
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
2824
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.
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
9673
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
10449
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...
0
10217
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
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
6785
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4114
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
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
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.