protected void Page_Load(object sender, EventArgs e) { COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); CTRL_VALUE_NAME = WebUtility.GetRequest("CTRL_VALUE_NAME"); CTRL_TEXT_NAME = WebUtility.GetRequest("CTRL_TEXT_NAME"); CHECHBOX_YN = WebUtility.GetRequest("CHECKBOX_YN"); CTRL_VALUE_VALUE = WebUtility.GetRequest("CTRL_VALUE_VALUE"); if (!IsPostBack) { if (!CHECHBOX_YN.Equals("Y")) { ibnSelect.Visible = false; TreeViewCommom.BindJobs(TreeView1, false, TreeNodeSelectAction.Select, null, COMP_ID); } else { TreeViewCommom.BindJobs(TreeView1, ibnSelect.Visible, TreeNodeSelectAction.None, CTRL_VALUE_VALUE, COMP_ID); } } ltrScript.Text = string.Empty; }
private void BindGrid(int comp_id) { TreeViewCommom.BindJobs(TreeView1, TreeNodeSelectAction.Select, comp_id); }