locked
Using Themes with ASP.NET Web Form Page RRS feed

  • Question

  • User-470152798 posted

    Hi, 

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="_Default" Theme="demo" %>

    whats wrong in this code

    Thursday, July 28, 2016 10:08 AM

Answers

All replies

  • User-718146471 posted

    I suspect you may not have declared the ThemePage directive in the web.config page. Take a look at this primer on using ASP.NET Themes: https://msdn.microsoft.com/en-us/library/0yy5hxdk.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 28, 2016 12:47 PM
  • User753101303 posted

    Hi,

    Or before asking us what is wrong tell us what happens. Do you have an error message? If it just "doesn't work" does this theme include a CSS file which is missing from the page markup  or is this a parciular CSS style which is not applied (F12 can help to check styles in the browser) or is this a skin file which is not applied etc...

    Try maybe https://msdn.microsoft.com/en-us/library/zcsbskx7.aspx

    Thursday, July 28, 2016 3:56 PM