Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
external stylesheet
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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
external stylesheet
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password