473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Broken graphics on login page

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
5 1161
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dam6 | last post by:
Okay... Using vb .net within DW MX2004, connecting to an access database: Background: I have created a simple login.aspx page that is supposed to re-direct to default.aspx using...
7
by: Trollpower | last post by:
Hello NG, i need to know how i can pass parameters to the loginpage if i use authentication mode Forms. I need to pass different paramaters, such as a different redirection url, strings and...
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
2
by: Sasquatch | last post by:
I'm having trouble creating a simple login page using the asp:login control. I followed some instructions in a WROX book, "Beginning ASP.NET 2.0," and the instructions are very straight forward,...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
2
by: dgbergman | last post by:
I have created a php login page in my site for my company. The goal is to get people into members area. Below is a list of steps that I take to create my login page in Dreamweaver CS3, can some one...
1
by: sweetpotatop | last post by:
I am currently using asp.net 2.0, I need a login page for my web application, but I will keep a list of users and access right of each users in a SQL database, I wonder how can this be done, as I...
9
by: adweaver | last post by:
Hello All, I'm new to the world of php. I've just had a site designed for me by a company, and I'm now trying to manage and grow it, so it will suit my needs. The site was built in a folder...
21
by: tvnaidu | last post by:
This is the Java script I am using fo rlogin page, but cursor not pointing to login box, any idea how can I point cursor to login box when this page loaded?. here admin login take to control page and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.