[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Mari Funke

6/17/2002 2:54:00 PM

Hi!
I want to add an external stylesheet to my mmit project,
but I am not able to make it work!
This is what I do:

The external stylesheet, ascx-file:

<%@ Control
Inherits="System.Web.UI.MobileControls.MobileUserControl"
Language="VBScript" %>
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken°3f5f7f11d50a3a" %>
<Mobile:Stylesheet runat="server">
<mobile:Style Font-Size="Small" Font-
Name="Verdana" Font-Bold="True" Name="Link"></mobile:Style>
<mobile:Style Font-Size="Small" Font-
Name="Verdana" Font-Bold="True"
Name="error"></mobile:Style>
</Mobile:Stylesheet>


Then, I try to use the styles from an aspx-file:


<body
Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm...
<mobile:form id="frmMeny" runat="server">
<mobile:Link id="lnkBank" runat="server"
Visible="False" NavigateUrl="bank.aspx"
StyleReference="Link"></mobile:Link>
<mobile:Label id="lblErr" runat="server"
Visible="False" StyleReference="error"></mobile:Label>
</mobile:form>
<mobile:StyleSheet id="StyleSheet1" runat="server"
ReferencePath="Style.ascx"></mobile:StyleSheet>
</body>


But the labels are not affected. When I add the stylesheet
to the aspx-file, it works perfectly fine. When I remove
it and add it to an ascx-file, I cannot reach the styles.

/Mari