locked
StyleSheet in Mobile Application RRS feed

  • Question

  • User974422131 posted

     

    StyleSheet not working in the mobile application , i m using ASp.NET 2.0 .

    when i run this application on Windows browser it is working fine, but on the mobile deveice ( i m using Nokia 3230 ),  stylesheet and simple html tags like <font>, bgcolor etc are not working.. do i need to put something in the web.config ??

    Sample code of what i m doing

    <Mobile:StyleSheet ID="StyleSheet1" runat="server">
    <Style name="Count" ForeColor="green" />
    </Mobile:StyleSheet>

     <mobile:Label ID="Lbl_Count" Runat="server" StyleReference="Count" ></mobile:Label>

    please help me out in the regards, anyhelp will be highly appreciated 

    Thanks 

     

    Tuesday, March 6, 2007 1:48 AM

Answers

  • User-512273051 posted

    Well arshad there are some ways to do this task.

    first of read http://www.codeproject.com/aspnet/browsercaps.asp to adjust the browser capablities and if you want to redirect browser based on browser type read this http://www.developershome.com/wap/wcss/wcss_tutorial.asp?page=toDiffUserAgents2

    one more thing WAP browsers used seprate CSS. read this http://www.developershome.com/wap/wcss/wcss_tutorial.asp?page=introduction.

     

    cheerss... 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 6, 2007 7:46 AM

All replies

  • User-512273051 posted

    Well arshad there are some ways to do this task.

    first of read http://www.codeproject.com/aspnet/browsercaps.asp to adjust the browser capablities and if you want to redirect browser based on browser type read this http://www.developershome.com/wap/wcss/wcss_tutorial.asp?page=toDiffUserAgents2

    one more thing WAP browsers used seprate CSS. read this http://www.developershome.com/wap/wcss/wcss_tutorial.asp?page=introduction.

     

    cheerss... 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 6, 2007 7:46 AM
  • User1980274535 posted

    change <Style name="Count" ForeColor="green" /> to <Mobile:Style name="Count" ForeColor="green" /> and try ...

    Tuesday, March 13, 2007 3:51 AM