This project is read-only.

Display images with theme

Topics: Writing themes
Jun 3, 2011 at 12:09 PM

My problem is like this

I tried the solution of pszmyd but did not work.

Can anybody help?

Jun 3, 2011 at 12:18 PM

You should do it like this:

<img src="@Url.Content("~/Modules/Module.Name/Content/Images/bgBig.jpg")" alt="Big background image" />
And then make sure that your Content directory has a Web.config which allows static files (you can copy this from any other Content directory)