473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

vb Simple Login page

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("tfUsern ame.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("tfUsern ame.value", true)
else if ((Request.Form("tfUsername"))) <> Nothing
OR ((Request.Form("tfPassword))) <> Nothing
Response.Write("Login Failed. Please Try Again.")
end if
%>
</tr>
Nov 19 '05 #1
0 1110

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff | last post by:
Please don't look down on me for this, but it is something I have never thought learning before. Lets say you have protected pages.. and youhave script at the top that directs the user to the...
1
by: Tuan Nguyen | last post by:
Hello all, I have a website about 10 pages. One of them is login page. I am using Simple Form Authentication with database to allow user login and logout. My problem is whenever my website is...
7
by: Tom wilson | last post by:
I have created a very simple example that doesn't work. Form1 contains a textbox and a button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
1
by: damiensawyer | last post by:
Hi all, I hope that this question isn't too simple... I am storing all of my webforms in a /forms directory (with the exception of Default.aspx). I have created the following code in...
2
by: Sasquatch | last post by:
I'm having trouble creating a simple login page using the asp:login control. I followed some instructions in a WROX book, "Beginning ASP.NET 2.0," and the instructions are very straight forward,...
2
by: bpnet | last post by:
Hi am wondering if u can give me a little help with some code. Im a little new to JS so please bare with me :) Im creating a login code for our clients to visit a section on our website that is...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
1
by: DougJrs | last post by:
Good Morning, I am trying to write a simple function that would grab the "errorId" parameter and then display a message when the page loads. I basically have a login page (login.asp) that if...
10
by: DavidPr | last post by:
When I logout as one user and log in under a different user, it opens with the last user's information. User 1 - Unsername: Davey Jones User 2 - Unsername: David Smith I log out from Davey...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.