Re: Debug problem...
From: Cowboy \(Gregory A. Beamer\) [MVP] (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 07/07/04
- Next message: Kevin Spencer: "Re: EXECUTE permission denied on object... uh?"
- Previous message: Kevin Spencer: "Re: how can i write in a database"
- In reply to: Tim::..: "Debug problem..."
- Next in thread: Tim::..: "Re: Debug problem..."
- Reply: Tim::..: "Re: Debug problem..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 07:33:35 -0500
>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::.." <myatix_at_hotmail.com> wrote in message news:AAA3E2BC-3265-4C73-B1B0-D951CD543E27@microsoft.com... > 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
- Next message: Kevin Spencer: "Re: EXECUTE permission denied on object... uh?"
- Previous message: Kevin Spencer: "Re: how can i write in a database"
- In reply to: Tim::..: "Debug problem..."
- Next in thread: Tim::..: "Re: Debug problem..."
- Reply: Tim::..: "Re: Debug problem..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|