protected void btnClearadmin_Click(object sender, EventArgs e) { bool b = objDeviceOp.ClearAdminPrivilege(Session["IPforOp"].ToString(), Convert.ToInt32(Session["PortForOp"])); if (b) { ScriptManager.RegisterStartupScript(this, GetType(), "", "alert('Admin Privilege Cleared')", true); } else { DisplayMessage("Error In Operation"); } }