Broken graphics on login page

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

I am writing an application in VS2005. I have created two forms and tested
both as the startup page. I changed the web.conf to use Forms based
authentication and defined one as the login page. When the login page comes
up the graphic are now broken.

I did this in VS2003 and it never happened.


Any help is greatly appreciated.
 
Right-click on the images in IE and select properties. Look at the location
of the images. Then compare this to where your images are actually at.
This might help you figure out what is happening?
 
Right-click on the images in IE and select properties. Look at the
location of the images. Then compare this to where your images are
actually at. This might help you figure out what is happening?

No difference, but thank you for your response.
 
Greg,
As Peter R. suggested, there are a lot of ways to refer to images in
ASP.NET. If you can request the image via an HTTP call from your browser,
e.g.,
http://myserver/myapp/images/myimage.gif
then you will at least be able to determine what works.
you can use relative or absolute paths for images, as well as the tilde
character in asp.net controls to reference "from the root of the app", e.g.
"~/images/myimage.gif".
Hope that helps.
Peter
 
Thank you for your response Peter.

I have tried all of the techniques that you have suggested and the results
are the same. The page can be displayed just fine if called from the app
but if I use it or any other page as a login page by adding:

<authentication mode="Forms">
<forms loginUrl="login.aspx" name="Scheduler" timeout="1" />
</authentication>

<authorization>
<deny users="?" />
</authorization>

to the web.config file then the graphics break.

Any other thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top