protected
override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
switch (Session["role"].ToString())
{
case "X":
MasterPageFile =
"X.Master";
break;
case "SS":
MasterPageFile =
"SS.Master";
break;
default:
MasterPageFile =
"XS.Master";
break;
}
if (Session["role"].ToString() == "SS")
{ btnSearch.Enabled =
true;
rbSerial.Checked =
false;
rbName.Checked =
false;
}
else
{
btnSearch.Enabled =
false;
}
}
protected void rbSerial_CheckedChanged(object sender, EventArgs e) {
if (rbSerial.Checked) {
txtSerial.Enabled = true;
please advice