目的:在类中返回值给属性,在页面读取该属性值判断结果。
代码:
                  private string strLoginStatus;
public string proLoginStatus
{
get
{
return this.strLoginStatus;
}
set
{
this.strLoginStatus = value;
}
}
public bool UserCheck()
{ try
{
if(this.proCheckCode == HttpContext.Current.Session["BitCode"].ToString())
{ if(this.proUserType == "0")
{
if(PersonUserLogin(this.proUserNum,this.proUserPwd) ==  true)
{
this.proLoginStatus = "0";
return true;
}
}
return true;
}
else
{
return false;
}
}
catch
{
return false;
}
}问题:该属性值如何才能取到呢?这个:this.proUserType == "0"