Error message when running ASP login page

Please support our ASP advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jan 2005
Posts: 2
Reputation: Belvee is an unknown quantity at this point 
Solved Threads: 0
Belvee Belvee is offline Offline
Newbie Poster

Error message when running ASP login page

 
0
  #1
Jan 11th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 12
Reputation: Kendel is an unknown quantity at this point 
Solved Threads: 1
Kendel Kendel is offline Offline
Newbie Poster

Re: Error message when running ASP login page

 
0
  #2
Apr 21st, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC