vb Simple Login page

Discussion in 'ASP .Net' started by Dam6, Jun 15, 2005.

  1. Dam6

    Dam6 Guest

    Hello,

    Having a bit of trouble with a simple login page etc using an access db.
    (Using DW 2004 and databases from Sean R. Nicholson)

    I've created a virtual application, added the dw ctrls and here is the error
    when I try to parse my login.aspx page: (Line 56 being the culprit)

    Any ideas?

    Compilation Error
    Description: An error occurred during the compilation of a resource
    required to service this request. Please review the following specific error
    details and modify your source code appropriately.

    Compiler Error Message: BC30035: Syntax error.

    Source Error:

    Line 54: FormsAuthentication.RedirectFromLoginPage("tfUsername.value",
    true)
    Line 55: else if ((Request.Form("tfUsername"))) <> Nothing
    Line 56: OR ((Request.Form("tfPassword))) <> Nothing
    Line 57: Response.Write("Login Failed. Please Try Again.")
    Line 58: end if



    Code::::

    <td><form runat="server">
    <table width="300" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="98">Username:</td>
    <td width="202"><asp:TextBox ID="tfUsername" runat="server"
    /></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><asp:TextBox ID="tfPassword" runat="server" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><asp:Button ID="Button" Text="Login" runat="server" /></td>
    </tr>
    </table>
    </form></td>
    <%
    if dsLogin.RecordCount > 0 then
    Session("sessUsername") = Request.Form("tfUsername")
    FormsAuthentication.RedirectFromLoginPage("tfUsername.value", true)
    else if ((Request.Form("tfUsername"))) <> Nothing
    OR ((Request.Form("tfPassword))) <> Nothing
    Response.Write("Login Failed. Please Try Again.")
    end if
    %>
    </tr>
     
    Dam6, Jun 15, 2005
    #1
    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. Hermit Dave

    Forms Login Page Not Login Out

    Hermit Dave, Jan 12, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    521
    Hermit Dave
    Jan 13, 2004
  2. Sasquatch
    Replies:
    2
    Views:
    1,366
    Sasquatch
    Oct 3, 2006
  3. Sasquatch
    Replies:
    2
    Views:
    508
    Sasquatch
    Oct 4, 2006
  4. vikramp
    Replies:
    2
    Views:
    1,299
    vikramp
    Oct 20, 2006
  5. Shannon

    login page stays on login page

    Shannon, Jan 9, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    574
    Shannon
    Jan 9, 2008
Loading...

Share This Page