Background image or Images does not display with the login screen

T

Ted Ngo

Hi All,

I try to create a login screen using mode="Forms"
Web Config:
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="Login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseCookies" />
</authentication>

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

on my login aspx page:

div id="pnlLogIn">
<table id="Table1" style="WIDTH: 453px" cellSpacing="0"
cellPadding="0" align="center" border="0" runat=server>
<TR>
<TD noWrap>&nbsp;</TD>
</TR>
<TR>
<TD style="PADDING-RIGHT: 5px" noWrap align="right"></TD>
</TR>
<TR>
<TD style="BACKGROUND-POSITION-X: center;
background-image:url(Images/loginheader.gif); width:453px; HEIGHT:
59px" noWrap class=LogInHeader>
<TABLE id="Table4" cellSpacing="0" cellPadding="0" width="100%"
border="0" runat=server>
<TR>
<TD align=center>
<span id="Label3" class=LogInHeader runat=server>Login
Screen</span>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</div>

When I ran it the back ground image does not display for me. I can see
the image in the design view. And also the styles does not work either,
it does not display the text I want

Please help.

Thanks
 
F

Felix Piskunov

I have the same problem but only if I run application using build-in VS2005
ASP.NET Server. But on localhost there is no such problem.
You also can play with Security tab in Properties of your images folder.
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top