Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 02, 2010 07:12 PM by thunder1234
May 29, 2010 02:44 PM|LINK
My problem is whenever i execute my app the first page that loads is the login page pointed to by my web.config file forms authentication, this page is meant to show CSS formatting for the info i am displaying but it is not. Any help with this problem would
be great. A cut and paste of my problem is shown below as you can see there is no CSS.
jsfdnjldfngjfg here it is
I have inserted all the link as in:
and i am using a web user control to display the login any help would be great
May 29, 2010 03:34 PM|LINK
You will need to add an exception in your web.config file to allow anonymous users to access the css file.
Hope this helps
May 29, 2010 05:02 PM|LINK
Didn't work unfortunately got any other ideas
May 29, 2010 05:21 PM|LINK
What happens if you try and navigate directly to the stylesheet? If you view the source on the rendered web page is the path correct. Where did you place the code I sugested, it should go inside the configuration element but outside the system.web element.
May 29, 2010 05:28 PM|LINK
I entered the code as you directed in several different fashions /styles/site.css, etc, don't get me wrong it does work i just found out when i navigate forward that is entering the username and password and then navigating back to the login page the css
is working fine i believe the problem is an page load fault but still could be something to do with the web.config
May 29, 2010 05:44 PM|LINK
can you post your web.config?
May 29, 2010 05:51 PM|LINK
is in the ~ that the path to the stylesheet is incorrect
change it to the proper path. I don't think you can use a plain runat="server" on the link tag
use it with
type="text/css" runat="server" />
May 30, 2010 07:43 AM|LINK
I tried using your statement it didn't work it was a copy and paste job here is a copy of my web.config
For more information on how to configure your ASP.NET application, please visit
Sorry about the sloppy formatting if you want i will reply with a fully formatted version but it will take time
May 30, 2010 10:05 AM|LINK
I cant see the location configuration I posted earlier. It should go before the last </configuration> tag. You can try changing the styles to ~/styles. What happens if you try to navigate directly to the stylesheet before you log in. I.e. if you put styles/site.css
in place of your login.aspx in the address bar?
May 30, 2010 02:04 PM|LINK
if you want you can download the entire code from sourceforge.net
http://basiccrm.sourceforge.net all you need is mySQL installed preferably with administrator and query browser so you can execute the stored procedures, the stored procedures are held within a folder named mysql. I'll try what you stated and leave it in
the .config file but please feel free to download the app and try it out, any advice on how to better it would be fantastic