radiobuttont怎样判断用户登录身份

来源:百度知道 编辑:UC知道 时间:2024/07/04 12:18:38

一般来说radiobuttont是判断后台登陆用的~
if(radiobuttont.checked =true)
{
意思是把radiobuttont的属性设为真 就是用户点击了~ 就可以登陆到2页面~
Response.Redirect("2.aspx");

}
else
{
如果用户没有点击的话 等登陆到1页面
Response.Redirect("1.aspx");
}

if(radiobuttont.checked =true)
{
///
管理员
}
else
{
/// 普通用户
}
///等

if(radioButton1.Checked)
{
//管理员
}
else if (radioButton2.Checked)
{
//普通用户
}

OnClick事件,一点击就判断。