Re: Referencing a Theme

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Henry Stock

    Re: Referencing a Theme

    I am having trouble referencing a theme in my ASP.NET project.

    I was following a model that allowed for multiple themes. So The theme that
    I have is stored in named "Base" under the App_Theme folder that is stored
    at the root of my project folder.

    It is really the one I want to use for all pages, so I thought I would
    reference it in the web.config file:

    <pages masterPageFile= "~/Masters/SiteTemplate.ma ster"
    theme="~/App_Theme/Base/" />

    I have tried reference with and without the final slash and with and without
    the beginning tilde. I have tried tried referencing the css file named
    Default.css.

    None of these have worked. What am I doing wrong?

    Example error messages:

    Error 1 Theme '/App_Theme/Base/Default.css' cannot be found in the
    application or global theme directories. D:\Projects\MyA PP\Web.config 14


    Error 2 D:\Projects\MyA PP\Default.aspx : ASP.NET runtime error: Theme
    '/App_Theme/Base/Default.css' cannot be found in the application or global
    theme directories. (D:\Projects\My APP\web.config line 14)
    D:\Projects\MyA PP\Default.aspx 1 1 D:\Projects\MyA PP\




  • Jeff Winn

    #2
    Re: Referencing a Theme

    You don't need to specify the full path to the theme, just specify the theme
    name.

    <pages theme="Base"

    "Henry Stock" <henry@henry-stock.comwrote in message
    news:uaRI%23FS4 IHA.1192@TK2MSF TNGP05.phx.gbl. ..
    >I am having trouble referencing a theme in my ASP.NET project.
    >
    I was following a model that allowed for multiple themes. So The theme
    that I have is stored in named "Base" under the App_Theme folder that is
    stored at the root of my project folder.
    >
    It is really the one I want to use for all pages, so I thought I would
    reference it in the web.config file:
    >
    <pages masterPageFile= "~/Masters/SiteTemplate.ma ster"
    theme="~/App_Theme/Base/" />
    >
    I have tried reference with and without the final slash and with and
    without the beginning tilde. I have tried tried referencing the css file
    named Default.css.
    >
    None of these have worked. What am I doing wrong?
    >
    Example error messages:
    >
    Error 1 Theme '/App_Theme/Base/Default.css' cannot be found in the
    application or global theme directories. D:\Projects\MyA PP\Web.config 14
    >
    >
    Error 2 D:\Projects\MyA PP\Default.aspx : ASP.NET runtime error: Theme
    '/App_Theme/Base/Default.css' cannot be found in the application or global
    theme directories. (D:\Projects\My APP\web.config line 14)
    D:\Projects\MyA PP\Default.aspx 1 1 D:\Projects\MyA PP\
    >
    >
    >
    >

    Comment

    Working...