Example #1
0
        public bool Update()
        {
            PoolDS.PoolDSDataTable dt   = BllProxyPool.GetAllPoolAgents();
            PoolDS.PoolDSRow[]     rows = (PoolDS.PoolDSRow[])dt.Select("", "agent_full_name");


            rptAgentPool.DataSource = rows;
            rptAgentPool.DataBind();



            foreach (RepeaterItem item in rptAgentPool.Items)
            {
                UcGroupRadioButton ucGroupRadioButton = (UcGroupRadioButton)item.FindControl("ucGroupRadioButton");

                if (ucGroupRadioButton != null)
                {
                    ucGroupRadioButton.Checked = false;

                    HiddenField hfAgentId = (HiddenField)item.FindControl("hfAgentId");
                    if (hfAgentId != null)
                    {
                        Int32 id = Convert.ToInt32(hfAgentId.Value);

                        if (id == this.selectedAgentId)
                        {
                            ucGroupRadioButton.Checked = true;
                        }
                    }
                }
            }


            upWork.Update();
            return(true);
        }
        //        ///---------------------------------------------------------------------------------



        protected void Page_Init(object sender, EventArgs e)
        {
            this.grb = new UcGroupRadioButton();
            this.grb.CheckedChanged += test;
        }
Example #3
0
        protected void rb_CheckedChanged(object sender, EventArgs e)
        {
            UcGroupRadioButton grb = (UcGroupRadioButton)sender;

            this.selectedAgentId = Convert.ToInt32(grb.UcValue);
        }