By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,672 Members | 1,644 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,672 IT Pros & Developers. It's quick & easy.

Broken graphics on login page

P: n/a
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.
Jul 27 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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?

"Greg Smith" <gj*@umn.eduwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
>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.

Jul 27 '06 #2

P: n/a
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.
Jul 27 '06 #3

P: n/a
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Greg Smith" wrote:
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.
Jul 27 '06 #4

P: n/a
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?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:F3**********************************@microsof t.com...
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Greg Smith" wrote:
>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.

Jul 28 '06 #5

P: n/a
Greg,
What is the purpose of using a one-second timeout in your Forms Auth sample?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Greg Smith" wrote:
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?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:F3**********************************@microsof t.com...
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Greg Smith" wrote:
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.


Jul 29 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.