Exemplo n.º 1
0
        protected void btnShowDevices_OnClick(int taskId)
        {
            btnAdd.Visible = false;
            btnSave.Visible = true;

            mpe.Show();

            DeviceDa deviceDa = new DeviceDa();
            TaskDa taskDa = new TaskDa();

            TaskData taskData = taskDa.GetTask(taskId);

            Session["SelectedDevices"] = deviceDa.GetDevicesFromTask(taskId);
            Session["ActiveTask"] = taskData;

            grdDevices.DataSource = deviceDa.getDevices();
            grdDevices.DataBind();
        }