Example #1
0
    protected void ddlOrganization_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            if (ddlOrganization.SelectedIndex > 0)
            {
                this.ddlCommittee.DataSource     = BLLGroup.GetGroupListWithMember(int.Parse(this.ddlOrganization.SelectedValue), true, 'C');
                this.ddlCommittee.DataTextField  = "GroupName";
                this.ddlCommittee.DataValueField = "GroupID";
                this.ddlCommittee.DataBind();

                this.EnableCommittee      = true;
                this.ddlCommittee.Enabled = this.EnableCommittee;
            }
            else
            {
                this.EnableCommittee      = false;
                this.ddlCommittee.Enabled = this.EnableCommittee;
            }
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = "Error Status";
            this.lblStatusMessage.Text = ex.Message;
        }
    }
Example #2
0
 void LoadCommittee()
 {
     try
     {
         this.ddlCommittee.DataSource     = BLLGroup.GetGroupListWithMember(int.Parse(this.ddlOrganization.SelectedValue), true, 'C');
         this.ddlCommittee.DataTextField  = "GroupName";
         this.ddlCommittee.DataValueField = "GroupID";
         this.ddlCommittee.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }
 void LoadGroup()
 {
     try
     {
         Session["Grouplst"]              = BLLGroup.GetGroupListWithMember(int.Parse(this.ddlOrg_Rqd.SelectedValue), false, 'C');
         this.lstCommittee.DataSource     = Session["GroupLst"];
         this.lstCommittee.DataTextField  = "GroupName";
         this.lstCommittee.DataValueField = "GroupID";
         this.lstCommittee.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }
Example #4
0
    protected void ddlOrganization_SelectedIndexChanged(object sender, EventArgs e)
    {
        //if (this.ddlOrganization.SelectedIndex <= 0)
        //{
        //    return;
        //}

        try
        {
            this.ddlCommittee.DataSource     = BLLGroup.GetGroupListWithMember(int.Parse(this.ddlOrganization.SelectedValue), true, 'C');
            this.ddlCommittee.DataTextField  = "GroupName";
            this.ddlCommittee.DataValueField = "GroupID";
            this.ddlCommittee.DataBind();
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = "Error Status";
            this.lblStatusMessage.Text = ex.Message;
        }
    }