DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP (http://www.daniweb.com/forums/forum62.html)
-   -   Error message when running ASP login page (http://www.daniweb.com/forums/thread16808.html)

Belvee Jan 11th, 2005 9:14 am
Error message when running ASP login page
 
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

Kendel Apr 21st, 2005 4:39 pm
Re: Error message when running ASP login page
 
Looks like a typo to me. The name of the textbox is txtFirstName not just FirstName.

Quote:

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



All times are GMT -4. The time now is 4:07 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC