0
bool lozinka()
{
int r = GridView1.Rows.Count;
for (int i = 0; i < r; i++)
{
if(DropDownList1.SelectedItem.Value==GridView1.Rows[i].Cells[2].Text)
if (TextBox2.Text == GridView1.Rows[i].Cells[3].Text)
{
id = GridView1.Rows[i].Cells[2].Text;
p = Convert.ToInt32(id);
exit;
}
}
return false;
}
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
{
if (lozinka())
args.IsValid = true;
else
args.IsValid = false;
}
//これはパスワードを確認しようとするとエラーになるコードですか?私はこの中にログインしようとすると、ユーザー名とパスワードasp.netデータベースのエラーcant接続し、パスワードを確認しますか?単純なバリデータ
どのようなエラーが表示されますか? –