| | |
Error message when running ASP login page
Please support our ASP advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jan 2005
Posts: 2
Reputation:
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:
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
![]() |
Similar Threads
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Server Error message when opening asp.net applicationm (ASP.NET)
- "Error message 580 when debugging a web page" (ASP.NET)
- Error message when running simple Java pgm (Java)
- Reload page Error message when starting Windows XP (Viruses, Spyware and other Nasties)
- Error message when running ASP email script (ASP)
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
| Thread Tools | Search this Thread |
archive asp aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection





