•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 401,439 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,881 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 3904 | Replies: 1
![]() |
•
•
Join Date: Jan 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
First of all thank you for the example on how to create the login page. I am also new at this and I have been trying out the login page using a SQL db. I am getting an error on my code for the button click event.
If Page.IsValid Then
If dbconnection(FirstName.Text, txtLastName.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtFirstName.Text, False)
Else
lblMessage.Text = "Invalid Name!"
End If
End If
This is the error:
Value of type string cannot be converted to "Systems.EventArgs"
Can someone please help :o
Thanks
belvee
If Page.IsValid Then
If dbconnection(FirstName.Text, txtLastName.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtFirstName.Text, False)
Else
lblMessage.Text = "Invalid Name!"
End If
End If
This is the error:
Value of type string cannot be converted to "Systems.EventArgs"
Can someone please help :o
Thanks
belvee
•
•
Join Date: Feb 2005
Posts: 12
Reputation:
Rep Power: 4
Solved Threads: 1
Looks like a typo to me. The name of the textbox is txtFirstName not just FirstName.
•
•
•
•
Originally Posted by Belvee
First of all thank you for the example on how to create the login page. I am also new at this and I have been trying out the login page using a SQL db. I am getting an error on my code for the button click event.
If Page.IsValid Then
If dbconnection(FirstName.Text, txtLastName.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtFirstName.Text, False)
Else
lblMessage.Text = "Invalid Name!"
End If
End If
This is the error:
Value of type string cannot be converted to "Systems.EventArgs"
Can someone please help :o
Thanks
belvee
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Error message when running ASP email script (ASP)
- Strange blank WinXP Login error message ... (Windows NT / 2000 / XP / 2003)
Other Threads in the ASP Forum
- Previous Thread: horizontal loop from database records
- Next Thread: Retrieving values from pop up and displaying into asp page


Linear Mode