Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Background image or Images does not display with the login screen

Reply
Thread Tools

Background image or Images does not display with the login screen

 
 
Ted Ngo
Guest
Posts: n/a
 
      11-06-2006
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

 
Reply With Quote
 
 
 
 
Felix Piskunov
Guest
Posts: n/a
 
      11-06-2006
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.


"Ted Ngo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: background images and span element when images are turned off Adrienne Boswell HTML 1 08-04-2009 10:51 AM
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
Cell background image does not display on some pages Nick Iredale HTML 10 03-01-2004 10:30 PM
changing a background image to a background colour? Dj Frenzy Javascript 3 02-10-2004 08:08 PM



Advertisments