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.Valu e " );
if (FRow != null )
{
LabelAccount.Te xt="Identified! ";
LabelPassword.T ext="Identified !";
}
else
{
LabelAccount.Te xt =" Unknown";
LabelPassword.T ext =" 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.Valu e " );
if (FRow != null )
{
LabelAccount.Te xt="Identified! ";
LabelPassword.T ext="Identified !";
}
else
{
LabelAccount.Te xt =" Unknown";
LabelPassword.T ext =" Unknown";
}
However, it is not working as I planed.
Would someone give me some advice?
Thanks.
Jason
Comment