protected void btnRestrat_Click(object sender, EventArgs e) { bool b = objDeviceOp.RestartDevice(Session["IPForOp"].ToString(), Convert.ToInt32(Session["PortForOp"])); if (b) { DisplayMessage("Device Restarted Successfully"); } else { DisplayMessage("Error In Operation"); } }