Background image or Images does not display with the login screen

Discussion in 'ASP .Net' started by Ted Ngo, Nov 6, 2006.

  1. Ted Ngo

    Ted Ngo Guest

    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
    Ted Ngo, Nov 6, 2006
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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
    >
    >
    Felix Piskunov, Nov 6, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nick Iredale
    Replies:
    10
    Views:
    932
    Toby A Inkster
    Mar 1, 2004
  2. Naccessible
    Replies:
    2
    Views:
    393
  3. Adrienne Boswell
    Replies:
    1
    Views:
    507
    dorayme
    Aug 4, 2009
  4. Travis Newbury
    Replies:
    0
    Views:
    438
    Travis Newbury
    Aug 4, 2009
  5. Colin Graham

    Login to admin system through login screen only

    Colin Graham, Apr 10, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    248
    Joseph MCAD
    Apr 11, 2005
Loading...

Share This Page