/// <summary> /// Control the compnent Regarding to the diff situation(CALL GTT) /// </summary> /// <param name="e"></param> /// <param name="errMessage"></param> /// <param name="index"></param> private void DoCallGTTCompnent(DataListCommandEventArgs e, int index, Profile profile) { ImageButton btn_Sel = (ImageButton)e.Item.FindControl("btnSelect"); btn_Sel.Visible = false; ImageButton btnNotAvail = (ImageButton)e.Item.FindControl("btnNotAvail"); btnNotAvail.Visible = true; //btnNotAvail.Text = "CALL"; btnNotAvail.Enabled = true; Panel p = (Panel)e.Item.FindControl("PopupMenu"); Label lbl_ErrorMessage = (Label)e.Item.FindControl("lbl_ErrorMessage"); //lbl_ErrorMessage.Text = Resources.HintInfo.PLEASECALL + CompanyName + Resources.HintInfo.FORDETAIL; profile.SetParam("ERR_MESSAGE", lbl_ErrorMessage.Text); p.Visible = true; runFlag.Value = "0"; }