1

i have a .skin file inside my app.themes folder. To access .css file from asp page we have to give link. but i couldn't find any thing on asp header to give link for .skin file.

<asp:TextBox SkinID="txtBox" ID="TextBox1" runat="server"></asp:TextBox>

i got the following error.. A SkinID has been specified but the page is not configured to use a page theme or stylesheet theme. This is acceptable if the theme or stylesheet theme will be set programmatically.

should i create any link?

thanks saj

4

2 に答える 2

2

Page の Theme プロパティで、テーマの名前 (スキン ファイルを含む App_Themes フォルダー内のフォルダー) を指定する必要があります。

コード内:

Page.Theme = "MyTheme"

またはあなたのマークアップで:

<%@ Page Theme="MyTheme" .... %>
于 2010-10-28T07:18:52.090 に答える
-1

スキン ファイルで ID="TextBox1" を使用しないでください

于 2013-11-14T09:44:51.503 に答える