Hi,
Wondering if anyone can tell me what i'm doing wrong here...
i've tested the sql code it is returning 3885909 and i've input that into the textbox but the if statement always results to false....
Cheers
C19
Wondering if anyone can tell me what i'm doing wrong here...
VB.NET:
Dim username As String
Dim input As String
sql = "select username from tbluserDetails where username = " & Me.txtUsername.Text
da = New SqlClient.SqlDataAdapter(sql, myConn)
da.Fill(ds, "tbluserDetails")
username = ds.Tables("tbluserDetails").Rows("0").Item(0)
input = Me.txtUsername.Text.ToString
Convert.ToString(input)
Convert.ToString(username)
If input = username Then
RegisterStartupScript("startupScript", "<script language=JavaScript>alert('Inside if statement' );</script>")
Response.Redirect("default.aspx")
End If
i've tested the sql code it is returning 3885909 and i've input that into the textbox but the if statement always results to false....
Cheers
C19