Debug problem...

G

Guest

Can some one tell me why I get this problem when debugging!

...:: Error ::..
txtPassword.Text = Value of 'String' cannot be converted to System.EventArgs


Thanks

...::CODE::..
Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
If Page.IsValid Then
'Connect to Database for User Validation
If DBConnection(txtUserName.Text, txtPassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False) ' ||||| default.aspx Page!

Else
' Credentials are Invalid
lblMessage.Text = "Invalid Login!"
End If
End If
End Sub
 
C

Cowboy \(Gregory A. Beamer\) [MVP]

From the code you have posted, this is most likely the issue:
If DBConnection(txtUserName.Text, txtPassword.Text)

Look at the actual signature of the DBConnection() method.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
Tim::.. said:
Can some one tell me why I get this problem when debugging!

..:: Error ::..
txtPassword.Text = Value of 'String' cannot be converted to System.EventArgs


Thanks

..::CODE::..
Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdSubmit.Click
If Page.IsValid Then
'Connect to Database for User Validation
If DBConnection(txtUserName.Text, txtPassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False) '
||||| default.aspx Page!
 
G

Guest

Thanks for the help!


Cowboy (Gregory A. Beamer) said:
From the code you have posted, this is most likely the issue:
If DBConnection(txtUserName.Text, txtPassword.Text)

Look at the actual signature of the DBConnection() method.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************

System.EventArgs) Handles cmdSubmit.Click
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False) '
||||| default.aspx Page!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top