D
Dam6
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> </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>
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> </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>