User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jan 2005
Posts: 2
Reputation: Belvee is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Belvee Belvee is offline Offline
Newbie Poster

Error message when running ASP login page

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 12
Reputation: Kendel is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Kendel Kendel is offline Offline
Newbie Poster

Re: Error message when running ASP login page

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 12:53 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC