S
sstrangee
Maybe I don't get the whole theming thing... but here is what I'm
trying to do:
I have a App_Themes directory with a Theme named "Standard." Under
this theme a CSS named "standard.css" and also have a folder named
Images (which contains header_left.jpg and header_right.jpg).
In my project, I created a new directory called "Masterpages" and it
contains a master page named "Standard.master."
Also in my project, I created a directory called "Controls" which
contains a Web User Control named "Header.ascx" with a code behind of
"Header.ascx.cs".
I also have a file in the base directory named "default.aspx" with a
"default.aspx.cs" code behind page.
Pretty simple setup.
Now, in the Header control I've added an ASP Table control that
contains 1 row and 2 columns, 1 column is justified left, the other
right. Both columns have an ASP Image control within them. For
simplicty sake, I set the ImageURL on one image to
"images/header_left.jpg" and the ImageURL on the right image control to
"images/header_right.jpg" in the design view.
Now, I place this Header control on the Standard.master page (cause I
want it to show up on every page). I set the Header control to
EnableTheming to true in the properties.
I then associate the default.aspx to the Standard.master page. I set
the theme on the default.aspx page to "Standard" in the properties
pane.
When I run this project, the default.aspx can not find any of the
images and when I look at the source code it actually has a src on the
image of "controls/images/header_left.jpg" and
"controls/images/header_right.jpg" (not the path to the images).
What am I doing wrong that the images aren't being themed here?
I've even tried creating a propery so that I can se the ImageURLs from
the master page so that it might pass the correct path to control, but
that gives me the same results.
Am I missing something here?
trying to do:
I have a App_Themes directory with a Theme named "Standard." Under
this theme a CSS named "standard.css" and also have a folder named
Images (which contains header_left.jpg and header_right.jpg).
In my project, I created a new directory called "Masterpages" and it
contains a master page named "Standard.master."
Also in my project, I created a directory called "Controls" which
contains a Web User Control named "Header.ascx" with a code behind of
"Header.ascx.cs".
I also have a file in the base directory named "default.aspx" with a
"default.aspx.cs" code behind page.
Pretty simple setup.
Now, in the Header control I've added an ASP Table control that
contains 1 row and 2 columns, 1 column is justified left, the other
right. Both columns have an ASP Image control within them. For
simplicty sake, I set the ImageURL on one image to
"images/header_left.jpg" and the ImageURL on the right image control to
"images/header_right.jpg" in the design view.
Now, I place this Header control on the Standard.master page (cause I
want it to show up on every page). I set the Header control to
EnableTheming to true in the properties.
I then associate the default.aspx to the Standard.master page. I set
the theme on the default.aspx page to "Standard" in the properties
pane.
When I run this project, the default.aspx can not find any of the
images and when I look at the source code it actually has a src on the
image of "controls/images/header_left.jpg" and
"controls/images/header_right.jpg" (not the path to the images).
What am I doing wrong that the images aren't being themed here?
I've even tried creating a propery so that I can se the ImageURLs from
the master page so that it might pass the correct path to control, but
that gives me the same results.
Am I missing something here?