J
Jason Huang
Hi,
I am trying to build a Login web form. I have one TextBoxAccount, and one
Password1 in the web form.
And the database table is User. No
DataRow[] FRow;
FRow = DS.Tables["User"].Select("UsrID= @TextBoxAccount.Text and PassWd=
@Password1.Value " );
if (FRow != null )
{
LabelAccount.Text="Identified!";
LabelPassword.Text="Identified!";
}
else
{
LabelAccount.Text =" Unknown";
LabelPassword.Text =" Unknown";
}
However, it is not working as I planed.
Would someone give me some advice?
Thanks.
Jason
I am trying to build a Login web form. I have one TextBoxAccount, and one
Password1 in the web form.
And the database table is User. No
DataRow[] FRow;
FRow = DS.Tables["User"].Select("UsrID= @TextBoxAccount.Text and PassWd=
@Password1.Value " );
if (FRow != null )
{
LabelAccount.Text="Identified!";
LabelPassword.Text="Identified!";
}
else
{
LabelAccount.Text =" Unknown";
LabelPassword.Text =" Unknown";
}
However, it is not working as I planed.
Would someone give me some advice?
Thanks.
Jason