この私の私のコード:convert.Toint16(c1.selectscalar(str)== 0)は何ですか?
string str_check;
str_check = "select count(*) from tbl_AdminLogin
where AdminId='" + txt_admin.Text + "' and Password='"
+ txt_pswd.Text + "'";
if (Convert.ToInt16(c1.selectScalar(str_check)) == 0)
{
lbl_errmsg.Text = "Invalid Admin";
}
else
{
Session.Add("adminid", txt_admin.Text);
Response.Redirect("AdminHome.aspx");
}
///THIS IS THE WHOLE PROJECT CS//
この行は何をしますか? :
if(Convert.ToInt16(c1.selectScalar(str_check)) == 0)
'c1'のデータ型は何ですか? – gideon
あなたはコードを持っています。あなたはc1が何であり、どのselectScalarが返すのか知っています。私たちにもっと何かを見せることができますか? – Steve
-1 'c1'や' selectScalar'は.NETフレームワークの一部ではなく、 'c1'の型と' selectScalar'の型を提供していないので、どのように知っていますか? –