2

I have a skin file inside the App_Themes and also a css file . I have used a Gridview styling css and import that in the skin file.

<asp:GridView CssClass="GridViewStyle" runat="server" >
    <FooterStyle CssClass="GridViewFooterStyle" />
    <RowStyle CssClass="GridViewRowStyle" />    
    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
    <PagerStyle CssClass="GridViewPagerStyle" />
    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
    <HeaderStyle CssClass="GridViewHeaderStyle" />
</asp:GridView>

But how can I link the css file into this skin file . I am not getting the design at runtime .

And My Web.Config file as

<pages themes="summer">

Any help

1 Answer 1

2

You need to add Page directive to use Themes file in individual page.

<%@ Page Theme="ThemeName" %>
<%@ Page StyleSheetTheme="ThemeName" %>

For more deatil. Check it

In Web.config file.

<configuration>
    <system.web>
        <pages StyleSheetTheme="Themename" />
    </system.web>
</configuration>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.