Last post Aug 28, 2007 01:35 AM by Zhao Ji Ma - MSFT
Aug 25, 2007 06:58 AM|vik1987|LINK
I am using Asp .Net 2.0. How can I use the external style sheet in Mobile Web Form?
Aug 27, 2007 06:20 AM|Zhao Ji Ma - MSFT|LINK
To create an external style sheet in ASP.NET Mobile Web Pages, you need to create a user control in an .ascx file, and place a single
StyleSheet control with a set of styles in it. Then, to refer to this file, place a
StyleSheet control on a mobile page and set its ReferencePath property to the relative URL of the user control.
Please check this for more details:
Aug 27, 2007 09:58 AM|vik1987|LINK
This type of stylesheet has lots of limitation. We can not use extra functionalities in .ascx file like css file.
Aug 28, 2007 01:35 AM|Zhao Ji Ma - MSFT|LINK
I'm not very sure of your exact requirment. But you can still use built-in styles and StyleSheet control for your ASP.NET mobile pages. This page has examples for different ways to use style sheets in ASP.NET mobile pages:
Hope it helps.