Browsercaps is not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prasad9490024564
    New Member
    • Mar 2008
    • 2

    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: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
Working...