Click here to Skip to main content
15,917,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

My first page in my website is a log in page and it has images and connect to a style sheet. But when I run it by using visual studio or iis, the images does not appear and the style that related to style sheet does not display. This happen only in the first page.. the other pages are fine. Also, when I log in to the website and access the next page and then log out.. the first page (log in page) is displayed perfectly with out any problem.

I do not know what is the problem, Could anyone help me to solve it?
Posted
Comments
[no name] 24-Aug-14 1:42am    
try ResolveUrl for giving path for CSS and for image path use '~/' instead of exact path. The reason you are getting the page second time after logging in could be for second page its fetching the css correctly and would be in cache. So after making all these changes Press CTRL+F5 on browser
Member 10510849 24-Aug-14 2:22am    
Thanks to reply.. My problem is solved by adding this code in website web.config

<location path="Styles/Site.css">
<system.web>
<authorization>
<allow users="*">




thank you
Gihan Liyanage 3-Sep-14 1:22am    
I cant see your resolved code..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900