Quang Hung 的个人资料Quang Hung's space照片日志网络更多 工具 帮助

日志


12月1日

add style sheet to page

Just add a runat attribute to your traditional link tag. ID attribute has to
be present, and tag has to be properly closed (not like HTML).<head>
<link id="MyStyleSheet" rel="stylesheet" type="text/css" runat="server" />
</head>Then in your Page_Load, simply add a "href" attribute as below:Sub
Page_Load(Sender As Object, E As EventArgs)
If Not (IsPostBack)
MyStyleSheet.Attributes.Add("href","/css/flostyle.css")
End If
End SubHope this helps
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


<> escreveu na mensagem
news: oups.com...
I'm afraid I can't use 2.0. Is this not possible in 1.1?

Bruno Alexandre wrote: