I’m quite new to ASP etc, so I’m a bit lost. I’ve tried searching, but I can’t seem to find my exact problem.
The code I’ve been working with is for a current website, and I’ve been trying to create a mobile variant with it.
The problem is, the default.aspx page isn’t rendered with CSS, but the rest of the web pages are. The site is on a development IIS 7 server. When I type the address in i.e. MyDomain.com/MySite, the default page loads, but without any CSS. If I click an item on the menu, it displays perfectly with all the CSS etc. If I click back to the home page, no CSS.
As I said, I’m new to ASP and can’t quite seem to find where the CSS is even defined at. If I load the pages, and right click and view source. The default page has no CSS files defined at the top, but if I do the same with another page, they’re there at the top. All pages used the same site.master. All the CSS files are in an App_Theme folder in the project area.
I got it fixed. I found out about the <%Page Themes tag, and added that to the default.aspx page, and it works.