コード例 #1
0
    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");
        }
    }