Inheritance: ListControl, IRepeatInfoUser, INamingContainer, IPostBackDataHandler
 public bool LlenarRadioBL_Web( RadioButtonList Generico )
 {
     if ( ! Validar() )
             return false;
         clsConexionBD objConexionBd = new clsConexionBD( strApp );
         try
         {
             objConexionBd.SQL = strSQL;
             if ( ! objConexionBd.LlenarDataSet( false ) )
             {
                 strError = objConexionBd.Error;
                 objConexionBd.CerrarCnx();
                 objConexionBd = null;
                 return false;
             }
             Generico.DataSource = objConexionBd.DataSet_Lleno.Tables[0];
             Generico.DataValueField = strCampoID;
             Generico.DataTextField = strCampoTexto;
             Generico.DataBind();
             objConexionBd.CerrarCnx();
             objConexionBd = null;
             return true;
         }
         catch (Exception ex)
         {
             strError = ex.Message;
             return false;
         }
 }
		private void Page_Load(object sender, System.EventArgs e) 
		{
			HtmlForm frm  = (HtmlForm)FindControl("Form1");
			GHTTestBegin(frm);

			//Negative CellPadding value:
			GHTSubTestBegin("Negative CellPadding value");
			try 
			{
				System.Web.UI.WebControls.RadioButtonList rbl = new System.Web.UI.WebControls.RadioButtonList();
				rbl.RepeatLayout = RepeatLayout.Table;
				rbl.CellPadding = -100;
				GHTSubTestExpectedExceptionNotCaught("ArgumentOutOfRangeException");
			}
			catch (ArgumentOutOfRangeException ex)
			{
				GHTSubTestExpectedExceptionCaught(ex);
			}
			catch (Exception ex) 
			{
				GHTSubTestUnexpectedExceptionCaught(ex);
			}
			GHTSubTestEnd();

			GHTTestEnd();
		}
        protected override void CreateChildControls()
        {
            this.Title = "Custom Wingtip Properties";

              txtUserGreeting = new TextBox();
              txtUserGreeting.TextMode = TextBoxMode.MultiLine;
              txtUserGreeting.Width = new Unit("100%");
              txtUserGreeting.Rows = 2;

              lstFontSizes = new RadioButtonList();
              lstFontSizes.Font.Size = new FontUnit("7pt");
              lstFontSizes.Items.Add("14");
              lstFontSizes.Items.Add("18");
              lstFontSizes.Items.Add("24");
              lstFontSizes.Items.Add("32");

              lstFontColors = new RadioButtonList();
              lstFontColors.Font.Size = new FontUnit("7pt");
              lstFontColors.Items.Add("Black");
              lstFontColors.Items.Add("Green");
              lstFontColors.Items.Add("Blue");
              lstFontColors.Items.Add("Purple");

              Controls.Add(new LiteralControl("<div class='WingtipEditorDiv'>Type a user greeting:</div>"));
              Controls.Add(txtUserGreeting);
              Controls.Add(new LiteralControl("<div class='WingtipEditorDiv'>Select font point size:</div>"));
              Controls.Add(lstFontSizes);
              Controls.Add(new LiteralControl("<div class='WingtipEditorDiv'>Select font color:</div>"));
              Controls.Add(lstFontColors);
        }
Example #4
0
 public McssWebQuestion(string strId, bool bRequired, string strRequiredText, string strQuestion, string strControlBase, RepeatDirection rdLayout, string[] strResponses)
     : base(strId, "mcss", bRequired, strRequiredText, strQuestion)
 {
     this.m_radioButtonList = new RadioButtonList();
     this.m_dropDownList = new DropDownList();
     this.m_listControl = null;
     if (strControlBase == "dropdown")
     {
         this.m_listControl = this.m_dropDownList;
     }
     else
     {
         this.m_radioButtonList.RepeatDirection = rdLayout;
         this.m_listControl = this.m_radioButtonList;
     }
     foreach (string text in strResponses)
     {
         this.m_listControl.Items.Add(new ListItem(text));
     }
     this.m_listControl.ID = "lst_" + strId;
     if (bRequired)
     {
         ListControlValidator child = new ListControlValidator();
         child.EnableClientScript = false;
         child.Text = strRequiredText;
         child.Display = ValidatorDisplay.Dynamic;
         child.ControlToValidate = this.m_listControl.ID;
         this.Controls.Add(child);
     }
     this.Controls.Add(this.m_listControl);
     this.Controls.Add(new LiteralControl("</p>"));
 }
Example #5
0
        //Override the Create Child Controls event
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            //label for radio button list
            lblTFQuestion = new Label();
            lblTFQuestion.ID = "lblTFQuestion";
            lblTFQuestion.AssociatedControlID = "uxTFQuestion";
            lblTFQuestion.Text = QuestionText;

            //create radio button list
            uxTFQuestion = new RadioButtonList();
            uxTFQuestion.ID = "uxTFQuestion";

            //create validation for radio button list
            reqTFQuestion = new RequiredFieldValidator();
            reqTFQuestion.ID = "reqTFQuestion";
            reqTFQuestion.Display = ValidatorDisplay.Dynamic;
            reqTFQuestion.Text = "*";
            reqTFQuestion.ControlToValidate = "uxTFQuestion";
            reqTFQuestion.ErrorMessage = "No radio selection";

            //create and add list items true and false
            ListItem listTrue = new ListItem("true", "true");
            ListItem listFalse = new ListItem("False", "False");
            uxTFQuestion.Items.Add(listTrue);
            uxTFQuestion.Items.Add(listFalse);

            //add label, radio button list and validator to controls
            Controls.Add(lblTFQuestion);
            Controls.Add(uxTFQuestion);
            Controls.Add(reqTFQuestion);
        }
        protected override void CreateChildControls()
        {
            this.Controls.Clear();

            this._optionsRadioButtons = new RadioButtonList();
            this._optionsRadioButtons.ID = RADIO_LIST_ID;
            this._optionsRadioButtons.Items.Clear();

            System.Diagnostics.Debug.Assert(this.Items.Count > 0, "Count is not greater Than 0");
            if (this.Items.Count > 0)
            {
                foreach (ListItem li in this.Items)
                {
                    this._optionsRadioButtons.Items.Add(li);
                }

                this._validator = new RequiredFieldValidator();
                this._validator.ControlToValidate = RADIO_LIST_ID;
                this._validator.ErrorMessage = this.RequiredErrorMessage;
                this._optionsRadioButtons.CausesValidation = true;
            }

            this.Controls.Add(this._optionsRadioButtons);
            if (this._validator != null)
            {
                this.Controls.Add(this._validator);
            }
        }
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Label lblQuestion = new Label();
            _rdoAnswer = new RadioButtonList();
            RequiredFieldValidator valQuestion = new RequiredFieldValidator();

            lblQuestion.ID = "lbl" + _question.QuestionGuid.ToString().Replace("-", String.Empty);
            _rdoAnswer.ID = "rdo" + _question.QuestionGuid.ToString().Replace("-", String.Empty);
            valQuestion.ID = "val" + _question.QuestionGuid.ToString().Replace("-", String.Empty);

            lblQuestion.Text = _question.QuestionText;
            lblQuestion.AssociatedControlID = _rdoAnswer.ID;

            valQuestion.ControlToValidate = _rdoAnswer.ID;
            valQuestion.Enabled = _question.AnswerIsRequired;

            foreach (QuestionOption option in _options)
            {
                ListItem li = new ListItem(option.Answer);
                if (li.Value == _answer) li.Selected = true;
                _rdoAnswer.Items.Add(li);
            }

            valQuestion.Text = _question.ValidationMessage;

            Controls.Add(lblQuestion);
            Controls.Add(_rdoAnswer);
            Controls.Add(valQuestion);
        }
 /// <summary>
 /// Selects and item in the radio button list control by the item value.
 /// This is available as a property of the control in .Net 1.1
 /// </summary>
 /// <param name="control"></param>
 /// <param name="value"></param>
 public static void SelectItem(RadioButtonList control, string value)
 {
     control.ClearSelection();
     ListItem item = control.Items.FindByValue(value);
     if (item != null)
         item.Selected = true;
 }
        protected override void CreateChildControls()
        {
            //base.CreateChildControls();
            lnkAnadir = new ImageLinkButton();
            lnkAnadir.ImageUrl = this.Page.ClientScript.GetWebResourceUrl(typeof(ContainerRibbon), "Inventio.Engine.Resources.img.cambiar.png");
            lnkAnadir.ImageWidth = new Unit(16, UnitType.Pixel);
            lnkAnadir.Text = "Cambiar gadget";
            lnkAnadir.Click += new EventHandler(btnAnadir_Click);
            //ButtonHelper.CreateButton(ref btnAnadir, "Seleccionar Gadget", btnAnadir_click);
            this.Controls.Add(this.lnkAnadir);

            this.PanelGadgets = new Panel();
            this.PanelGadgets.CssClass = "ListaGadgets";
            radList = new RadioButtonList();
            this.PanelGadgets.Controls.Add(radList);

            lnkAceptar = new ImageLinkButton();
            lnkAceptar.ImageUrl = this.Page.ClientScript.GetWebResourceUrl(typeof(ContainerRibbon), "Inventio.Engine.Resources.img.ok.gif");
            lnkAceptar.ImageWidth = new Unit(16, UnitType.Pixel);
            lnkAceptar.Text = "Aceptar";
            lnkAceptar.Click += new EventHandler(lnkAceptar_Click);
            this.PanelGadgets.Controls.Add(this.lnkAceptar);

            lnkCancelar = new ImageLinkButton();
            lnkCancelar.ImageUrl = this.Page.ClientScript.GetWebResourceUrl(typeof(ContainerRibbon), "Inventio.Engine.Resources.img.cancel.png");
            lnkCancelar.ImageWidth = new Unit(16, UnitType.Pixel);
            lnkCancelar.Text = "Cancelar";
            lnkCancelar.Click += new EventHandler(lnkCancelar_Click);
            this.PanelGadgets.Controls.Add(this.lnkCancelar);

            this.Controls.Add(this.PanelGadgets);
        }
Example #10
0
 public static RadioButtonList BindMaritaStatus(RadioButtonList rbList, string texto, string valor)
 {
     try
     {
     if (SPContext.Current != null)
     {
       using (Microsoft.SharePoint.SPWeb web = SPContext.Current.Web)
       {
         BLL.MaritalStateBLL bll = new CAFAM.WebPortal.BLL.MaritalStateBLL(web);
         DataSet ds = bll.GetMaritalStateList();
         BindList(rbList, ds, texto, valor);
       }
     }
     else
     {
       using (SPSite site = new SPSite(SP_SITE))
       {
         using (Microsoft.SharePoint.SPWeb web = site.OpenWeb())
         {
             BLL.MaritalStateBLL bll = new CAFAM.WebPortal.BLL.MaritalStateBLL(web);
             DataSet ds = bll.GetMaritalStateList();
             BindList(rbList, ds, texto, valor);
         }
       }
     }
     }
     catch (Exception ex)
     {
     throw ex;
     }
     return rbList;
 }
		private void Page_Load(object sender, System.EventArgs e) 
		{
			HtmlForm frm = (HtmlForm)FindControl("form1");
			GHTTestBegin(frm);

			//Non valid RepeatColumns value
			GHTSubTestBegin("Non valid RepeatColumns value");
			try 
			{
				System.Web.UI.WebControls.RadioButtonList rbl = new System.Web.UI.WebControls.RadioButtonList();
				rbl.RepeatColumns = -1;
				GHTSubTestExpectedExceptionNotCaught("ArgumentOutOfRangeException");
			}
			catch (ArgumentOutOfRangeException ex)
			{
				GHTSubTestExpectedExceptionCaught(ex);
			}
			catch (Exception ex) 
			{
				GHTSubTestUnexpectedExceptionCaught(ex);
			}
			GHTSubTestEnd();

			GHTTestEnd();

		}
        public DynamicRadioButtonList()
        {
            controlXML = new DynamicRadioButtonListXml();

            _tbControls = new Table();
            _trControls = new TableRow();
            _tdLabel = new TableCell();
            _tdControl = new TableCell();
            _tdRequired = new TableCell();
            _trControls.Cells.Add(_tdLabel);
            _trControls.Cells.Add(_tdControl);
            _trControls.Cells.Add(_tdRequired);
            _tbControls.Rows.Add(_trControls);

            _radioButtonList = new RadioButtonList();
            _radioButtonList.CausesValidation = false;
            _radioButtonList.RepeatDirection = RepeatDirection.Horizontal;

            _required = new RequiredFieldValidator();
            _required.Display = ValidatorDisplay.Dynamic;
            _required.EnableClientScript = true;
            _required.Text = "*";
            _required.Enabled = false;

            _tdControl.Controls.Add(_radioButtonList);
            _tdRequired.Controls.Add(_required);
            this.Controls.Add(_tbControls);
        }
Example #13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Adf.Web.UI.RadioButtonListItem"/> class with the specified label and radio button list.
        /// </summary>
        /// <param name="label">The <see cref="System.Web.UI.WebControls.Label"/> that defines display text of the radio button list within <see cref="Adf.Web.UI.BasePanelItem"/>.</param>
        /// <param name="list">The <see cref="System.Web.UI.WebControls.RadioButtonList"/> that defines the control which will be added into <see cref="Adf.Web.UI.BasePanelItem"/>.</param>
        public RadioButtonListItem(Label label, RadioButtonList list)
        {
            List = list;

            _labelControls.Add(label);

            _itemControls.Add(list);
        }
Example #14
0
        private static RadioButtonList GetRadioButtonList(string id, string keys, string values, string selectedValues)
        {
            RadioButtonList list = new RadioButtonList();
            list.ID = id;
            list.ClientIDMode = System.Web.UI.ClientIDMode.Static;

            list.RepeatDirection = RepeatDirection.Horizontal;
            Helper.AddListItems(list, keys, values, selectedValues);
            return list;
        }
        protected override WebControl CreateControlInternal(Control container)
        {
            _radioButtonList = new RadioButtonList  { ID = ID + "_RadioButtonList", RepeatColumns = 1, RepeatDirection = RepeatDirection.Vertical, RepeatLayout = RepeatLayout.Flow};

            container.Controls.Add(_radioButtonList);

            if (ListSource != null)
            {
                BindList();
            }

            return _radioButtonList;
        }
Example #16
0
        public IEnumerable<object> Render(PanelItem panelItem)
        {
            var list = new RadioButtonList { ID = panelItem.GetId(), Enabled = panelItem.Editable, Width = new Unit(panelItem.Width, UnitType.Ex), Visible = panelItem.Visible };

            list
                .AddStyle(CssClass.Item)
                .AttachToolTip(panelItem)
                .ToggleStyle(panelItem.Editable, CssClass.Editable, CssClass.ReadOnly);

            panelItem.Target = list;

            return new List<Control> { list, PanelValidator.Create(panelItem) };
        }
Example #17
0
        /**
         * Obtiene el turno seleccionado y lo devuelve como un string
         * */
        public string getSelectedTorn(RadioButtonList rbl)
        {
            StringBuilder selectedTorn = new StringBuilder();

            foreach (ListItem item in rbl.Items)
            {
                if (item.Selected)
                {
                    selectedTorn.Append(item.Text);
                }
            }
            return selectedTorn.ToString();
        }
 public static void FillDataToRadioButtonList(RadioButtonList control, string table, string dataTextField, string dataValueField)
 {
     opendata();
     string strCommand = "SELECT " + dataTextField + ", " + dataValueField + " FROM " + table;
     sqladapter = new SqlDataAdapter(strCommand, sqlconn);
     mydata = new DataSet();
     sqladapter.Fill(mydata, strCommand);
     control.DataSource = mydata;
     control.DataTextField = dataTextField;
     control.DataValueField = dataValueField;
     control.DataBind();
     closedata();
 }
        public static void createItemAdPos(ref RadioButtonList rbl)
        {
            List<string[]> l = listAds();
            rbl.DataSource = from obj in l
                             select new
                             {
                                 Id = obj[0],
                                 Name = obj[1]
                             };

            rbl.DataTextField = "Name";
            rbl.DataValueField = "Id";
            rbl.DataBind();
            rbl.SelectedIndex = 0;
        }
        public SingleSelectControl(SingleSelect question)
        {
            RepeatDirection direction = question.Vertical ? RepeatDirection.Vertical : RepeatDirection.Horizontal;

            switch (question.SelectionType)
            {
                case Items.SingleSelectType.DropDown:
                    lc = new DropDownList();
                    break;
                case Items.SingleSelectType.ListBox:
                    var lb = new ListBox();
                    lb.SelectionMode = ListSelectionMode.Single;
                    lc = lb;
                    break;
                case Items.SingleSelectType.RadioButtons:
                    var rbl = new RadioButtonList();
                    rbl.RepeatLayout = RepeatLayout.Flow;
                    rbl.RepeatDirection = direction;
                    lc = rbl;
                    break;
            }

            lc.CssClass = "alternatives";
            if (question.ID > 0)
                lc.ID = "q" + question.ID;
            lc.DataTextField = "Title";
            lc.DataValueField = "ID";
			lc.DataSource = question.Children.WhereAccessible();
            lc.DataBind();

            l = new Label();
            l.CssClass = "label";
            l.Text = question.Title;
            if (question.ID > 0)
                l.AssociatedControlID = lc.ID;

            Controls.Add(l);
            Controls.Add(lc);

            if (question.Required)
            {
                cv = new CustomValidator { Display = ValidatorDisplay.Dynamic, Text = "*" };
                cv.ErrorMessage = question.Title + " is required";
                cv.ServerValidate += (s, a) => a.IsValid = !string.IsNullOrEmpty(AnswerText);
                cv.ValidationGroup = "Form";
                Controls.Add(cv);
            }
        }
Example #21
0
        public static void createItemLanguage(ref RadioButtonList rbl)
        {
            List<string[]> l = new List<string[]> { new string[] { "1", "Việt Nam" }, new string[] { "2", "English" } };

            rbl.DataSource = from obj in l
                             select new
                             {
                                 Id = obj[0],
                                 Name = obj[1]
                             };

            rbl.DataTextField = "Name";
            rbl.DataValueField = "Id";
            rbl.DataBind();
            rbl.SelectedIndex = 0;
        }
        public Submission(string childName,string childSurname,DateTime childDOB, string childPPS, RadioButtonList childGender, string adultName, string adultSurname, RadioButtonList rel, string otherRel, string address1, string address2, string addressTown, string addressCounty, string phone1, string phone2, string phone3, string email1, string email2, CheckBoxList days, RadioButtonList TimeButtons)
        {
            CName = childName;
            CSName = childSurname;CDOB = childDOB;
            CPPS = childPPS;
            CGender = (Gender)Enum.Parse((typeof(Gender)),childGender.SelectedValue);
            AName = adultName;
            ASName = adultSurname;
            Relat = rel;
            OtherRel = otherRel;
            Address1 = address1;
            Address2 = address2;
            AddressTown = addressTown;
            AddressCounty = addressCounty;
            Phone1 = phone1;
            Phone2 = phone2;
            Phone3 = phone3;
            Email1 = email1;
            Email2 = email2;
            Days = days;

            //set string and cost for chosen time
            Time = TimeButtons.SelectedValue;
            if (Time == "Full Time")
                dayCost = 25;
            else dayCost = 15;

            //set relationship and pronoun strings
            Relationship = CGender.ToString();
            switch (Relationship)
            {
                case "Male":
                    Relationship = "son";
                    pronoun = "his";
                    pronounC = "His";
                    break;
                case "Female":
                    Relationship="daughter";
                    pronoun = "her";
                    pronounC = "Her";
                    break;
                default:
                    break;
            }
            if (Relat.SelectedValue == "Other (Please Specify)")
                Relationship = "child";
        }
Example #23
0
        private static RadioButtonList GetRadioButtonList(string id, string keys, string values, string selectedValues)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                return null;
            }

            using (RadioButtonList list = new RadioButtonList())
            {
                list.ID = id;
                list.ClientIDMode = System.Web.UI.ClientIDMode.Static;

                list.RepeatDirection = RepeatDirection.Horizontal;
                Helper.AddListItems(list, keys, values, selectedValues);
                return list;
            }
        }
 public override string GetDesignTimeHtml()
 {
     HtmlTableRow row = new HtmlTableRow();
     row.VAlign = "top";
     row.Align = "center";
     HtmlTableCell cell = new HtmlTableCell();
     cell.InnerHtml = "<b>sstchur's WebSurvey Control</b>";
     row.Cells.Add(cell);
     this.table.Rows.Add(row);
     row = new HtmlTableRow();
     cell = new HtmlTableCell();
     Label child = new Label();
     child.Text = "<b>What is your name?</b>";
     TextBox box = new TextBox();
     box.Columns = 30;
     cell.Controls.Add(new LiteralControl("<br>"));
     cell.Controls.Add(new LiteralControl("<p>"));
     cell.Controls.Add(child);
     cell.Controls.Add(new LiteralControl("<br>"));
     cell.Controls.Add(box);
     cell.Controls.Add(new LiteralControl("<p>"));
     cell.Controls.Add(new LiteralControl("<p>"));
     RadioButtonList list = new RadioButtonList();
     list.Attributes.Add("style", "font-size: 12px;");
     list.Items.Add("Red");
     list.Items.Add("Blue");
     list.Items.Add("Green");
     cell.Controls.Add(list);
     cell.Controls.Add(new LiteralControl("</p>"));
     Button button = new Button();
     button.Text = "Submit";
     cell.Controls.Add(new LiteralControl("<p>"));
     cell.Controls.Add(button);
     cell.Controls.Add(new LiteralControl("</p>"));
     child = new Label();
     child.Text = "<p><b>Note:</b> <small>The above questions are only samples displayed at design-time. Actual questions will be generated at run-time based on the XML in your SurveyFile.</small></p>";
     cell.Controls.Add(child);
     row.Cells.Add(cell);
     this.table.Rows.Add(row);
     StringWriter writer = new StringWriter();
     HtmlTextWriter writer2 = new HtmlTextWriter(writer);
     this.table.RenderControl(writer2);
     return writer2.InnerWriter.ToString();
 }
Example #25
0
 void InitEditControl()
 {
     if (IsNotAListOfValues)
     {
         CtlUrl = (UrlControl) (Page.LoadControl("~/controls/URLControl.ascx"));
         CtlUrl.ID = CleanID(string.Format("{0}_url", FieldTitle));
         var container = new HtmlGenericControl("div");
         container.Attributes.Add("class", "dnnLeft");
         container.Controls.Add(CtlUrl );
         Controls.Add(container );
         ValueControl = CtlValueBox;
     }
     else
     {
         ListControl ctlListControl;
         switch (ListInputType)
         {
             case InputType.horizontalRadioButtons:
                 ctlListControl = new RadioButtonList
                 {
                     RepeatDirection = RepeatDirection.Horizontal,
                     RepeatLayout = RepeatLayout.Flow
                 };
                 break;
             case InputType.verticalRadioButtons:
                 ctlListControl = new RadioButtonList { RepeatLayout = RepeatLayout.Flow };
                 break;
             default:
                 ctlListControl = new DropDownList();
                 break;
         }
         AddListItems(ctlListControl);
         CtlValueBox = ctlListControl;
         CtlValueBox.CssClass = "NormalTextBox";
         CtlValueBox.ID = CleanID(FieldTitle);
         ValueControl = CtlValueBox;
         var container = new HtmlGenericControl("div");
         container.Attributes.Add("class", "dnnLeft");
         container.Controls.Add(CtlValueBox);
         Controls.Add(container) ;
         ValueControl = CtlValueBox;
     }
 }
		public SingleSelectControl(SingleSelect question, RepeatDirection direction)
		{
			rbl = new RadioButtonList();
			rbl.CssClass = "alternatives";
			rbl.ID = "q" + question.ID;
			rbl.DataTextField = "Title";
			rbl.DataValueField = "ID";
			rbl.DataSource = question.GetChildren();
			rbl.RepeatLayout = RepeatLayout.Flow;
			rbl.RepeatDirection = direction;
			rbl.DataBind();

			l = new Label();
			l.CssClass = "label";
			l.Text = question.Title;
			l.AssociatedControlID = rbl.ID;

			Controls.Add(l);
			Controls.Add(rbl);
		}
Example #27
0
        public static void createItemAdPos(ref RadioButtonList rbl)
        {
            List<string[]> l = new List<string[]> 
            { 
                new string[] { "0", "Slideshow" }, 
                new string[] { "1", "Advertising" },
            };

            rbl.DataSource = from obj in l
                             select new
                             {
                                 Id = obj[0],
                                 Name = obj[1]
                             };

            rbl.DataTextField = "Name";
            rbl.DataValueField = "Id";
            rbl.DataBind();
            rbl.SelectedIndex = 0;
        }
Example #28
0
 protected override void AttachChildControls()
 {
     this.litUserName = (Literal) this.FindControl("litUserName");
     this.rbtnPaymentMode = (RadioButtonList) this.FindControl("rbtnPaymentMode");
     this.txtReChargeBalance = (TextBox) this.FindControl("txtReChargeBalance");
     this.btnReCharge = ButtonManager.Create(this.FindControl("btnReCharge"));
     this.litUseableBalance = (FormatedMoneyLabel) this.FindControl("litUseableBalance");
     PageTitle.AddSiteNameTitle("预付款充值", HiContext.Current.Context);
     this.btnReCharge.Click += new EventHandler(this.btnReCharge_Click);
     if (!this.Page.IsPostBack)
     {
         Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member;
         if (!user.IsOpenBalance)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", HttpContext.Current.Request.Url));
         }
         this.BindPaymentMode();
         this.litUserName.Text = HiContext.Current.User.Username;
         this.litUseableBalance.Money = user.Balance - user.RequestBalance;
     }
 }
Example #29
0
        protected override void CreateChildControls()
        {
            //label radiobuttonlist, req'd valid
            //Two list items, true false
            base.CreateChildControls();

            questiontext = new Label();
            truefalse = new RadioButtonList();

            questiontext.ID = "uxLabel";
            questiontext.Text = this.QuestionText;
            truefalse.ID = "uxTrueFalse";
            truefalse.Items.Add(new ListItem("True"));
            truefalse.Items.Add(new ListItem("False"));
            Controls.Add(questiontext);
            Controls.Add(truefalse);

            RequiredFieldValidator ReqValidator = new RequiredFieldValidator();
            ReqValidator.ControlToValidate = "uxTrueFalse";
            Controls.Add(ReqValidator);
        }
        protected override void CreateChildControls()
        {
            toolPartPanel = new Panel();
            ddlList = new DropDownList();
            ddlList.ID = "ddlList";

            rdButtons = new RadioButtonList();
            rdButtons.Items.Add(new ListItem("Yes"));
            rdButtons.Items.Add(new ListItem("No"));

            SPListCollection lists = SPContext.Current.Web.Lists;
            foreach (SPList list in lists)
            {
                ddlList.Items.Add(new ListItem(list.Title, list.ID.ToString()));
            }

            toolPartPanel.Controls.Add(ddlList);
            toolPartPanel.Controls.Add(rdButtons);
            Controls.Add(toolPartPanel);
            base.CreateChildControls();
        }
Example #31
0
    private void DisableControl(Control objC)
    {
        try
        {
            if (objC is Telerik.Web.UI.RadTextBox)
            {
                Telerik.Web.UI.RadTextBox obj = (Telerik.Web.UI.RadTextBox)objC;
                obj.ReadOnly = true;
            }

            if (objC is Telerik.Web.UI.RadComboBox)
            {
                Telerik.Web.UI.RadComboBox obj = (Telerik.Web.UI.RadComboBox)objC;
                obj.Enabled   = false;
                obj.BackColor = Color.White;
                obj.ForeColor = Color.Black;
            }

            if (objC is Telerik.Web.UI.RadNumericTextBox)
            {
                Telerik.Web.UI.RadNumericTextBox obj = (Telerik.Web.UI.RadNumericTextBox)objC;
                obj.ReadOnly = true;
            }

            if (objC is Telerik.Web.UI.RadDatePicker)
            {
                Telerik.Web.UI.RadDatePicker obj = (Telerik.Web.UI.RadDatePicker)objC;
                obj.Enabled = false;
            }

            if (objC is Telerik.Web.UI.DatePickingCalendar)
            {
                Telerik.Web.UI.DatePickingCalendar obj = (Telerik.Web.UI.DatePickingCalendar)objC;
                obj.Enabled = false;
            }

            if (objC is System.Web.UI.WebControls.RadioButtonList)
            {
                System.Web.UI.WebControls.RadioButtonList obj = (System.Web.UI.WebControls.RadioButtonList)objC;
                obj.Enabled = false;
            }

            if (objC is System.Web.UI.WebControls.TextBox)
            {
                System.Web.UI.WebControls.TextBox obj = (System.Web.UI.WebControls.TextBox)objC;
                obj.ReadOnly = true;
            }

            if (objC is Telerik.Web.UI.RadUpload)
            {
                Telerik.Web.UI.RadUpload obj = (Telerik.Web.UI.RadUpload)objC;
                obj.Enabled = false;
            }

            if (objC is Telerik.Web.UI.RadButton)
            {
                Telerik.Web.UI.RadButton obj = (Telerik.Web.UI.RadButton)objC;
                obj.ReadOnly = true;
            }
        }
        catch (Exception)
        {
            throw;
        }
    }
 private void RunDesignTimeTests()
 {
     try
     {
         this.Datagrid3.DataSource = WebControl_Style.m_dataSource;
         this.Datagrid4.DataSource = WebControl_Style.m_dataSource;
         this.Datalist3.DataSource = WebControl_Style.m_dataSource;
         this.Datalist4.DataSource = WebControl_Style.m_dataSource;
         this.Datagrid3.DataBind();
         this.Datagrid4.DataBind();
         this.Datalist3.DataBind();
         this.Datalist4.DataBind();
         GHTSubTest test1    = this.GHTSubTest24;
         WebControl control1 = this.Button2;
         this.AddAttributes(ref test1, ref control1);
         this.Button2      = (Button)control1;
         this.GHTSubTest24 = test1;
         test1             = this.GHTSubTest25;
         control1          = this.Checkbox2;
         this.AddAttributes(ref test1, ref control1);
         this.Checkbox2    = (CheckBox)control1;
         this.GHTSubTest25 = test1;
         test1             = this.GHTSubTest26;
         control1          = this.Hyperlink2;
         this.AddAttributes(ref test1, ref control1);
         this.Hyperlink2   = (HyperLink)control1;
         this.GHTSubTest26 = test1;
         test1             = this.GHTSubTest27;
         control1          = this.Image2;
         this.AddAttributes(ref test1, ref control1);
         this.Image2       = (Image)control1;
         this.GHTSubTest27 = test1;
         test1             = this.GHTSubTest28;
         control1          = this.Imagebutton2;
         this.AddAttributes(ref test1, ref control1);
         this.Imagebutton2 = (ImageButton)control1;
         this.GHTSubTest28 = test1;
         test1             = this.GHTSubTest29;
         control1          = this.Label2;
         this.AddAttributes(ref test1, ref control1);
         this.Label2       = (Label)control1;
         this.GHTSubTest29 = test1;
         test1             = this.GHTSubTest30;
         control1          = this.Linkbutton2;
         this.AddAttributes(ref test1, ref control1);
         this.Linkbutton2  = (LinkButton)control1;
         this.GHTSubTest30 = test1;
         test1             = this.GHTSubTest31;
         control1          = this.Panel2;
         this.AddAttributes(ref test1, ref control1);
         this.Panel2       = (Panel)control1;
         this.GHTSubTest31 = test1;
         test1             = this.GHTSubTest32;
         control1          = this.Radiobutton2;
         this.AddAttributes(ref test1, ref control1);
         this.Radiobutton2 = (RadioButton)control1;
         this.GHTSubTest32 = test1;
         test1             = this.GHTSubTest33;
         control1          = this.Textbox2;
         this.AddAttributes(ref test1, ref control1);
         this.Textbox2     = (TextBox)control1;
         this.GHTSubTest33 = test1;
         test1             = this.GHTSubTest34;
         control1          = this.Dropdownlist2;
         this.AddAttributes(ref test1, ref control1);
         this.Dropdownlist2 = (DropDownList)control1;
         this.GHTSubTest34  = test1;
         test1    = this.GHTSubTest35;
         control1 = this.Listbox2;
         this.AddAttributes(ref test1, ref control1);
         this.Listbox2     = (ListBox)control1;
         this.GHTSubTest35 = test1;
         test1             = this.GHTSubTest36;
         control1          = this.Radiobuttonlist2;
         this.AddAttributes(ref test1, ref control1);
         this.Radiobuttonlist2 = (RadioButtonList)control1;
         this.GHTSubTest36     = test1;
         test1    = this.GHTSubTest37;
         control1 = this.Checkboxlist2;
         this.AddAttributes(ref test1, ref control1);
         this.Checkboxlist2 = (CheckBoxList)control1;
         this.GHTSubTest37  = test1;
         test1    = this.GHTSubTest44;
         control1 = this.Datagrid3;
         this.AddAttributes(ref test1, ref control1);
         this.Datagrid3    = (DataGrid)control1;
         this.GHTSubTest44 = test1;
         test1             = this.GHTSubTest45;
         control1          = this.Datagrid4.Items[0];
         this.AddAttributes(ref test1, ref control1);
         this.GHTSubTest45 = test1;
         test1             = this.GHTSubTest46;
         control1          = this.Datalist3;
         this.AddAttributes(ref test1, ref control1);
         this.Datalist3    = (DataList)control1;
         this.GHTSubTest46 = test1;
         test1             = this.GHTSubTest47;
         control1          = this.Datalist4.Items[0];
         this.AddAttributes(ref test1, ref control1);
         this.GHTSubTest47 = test1;
         test1             = this.GHTSubTest48;
         control1          = this.Table4;
         this.AddAttributes(ref test1, ref control1);
         this.Table4       = (Table)control1;
         this.GHTSubTest48 = test1;
         test1             = this.GHTSubTest49;
         control1          = this.Table6;
         this.AddAttributes(ref test1, ref control1);
         this.Table6       = (Table)control1;
         this.GHTSubTest49 = test1;
         test1             = this.GHTSubTest50;
         control1          = this.Table7;
         this.AddAttributes(ref test1, ref control1);
         this.Table7       = (Table)control1;
         this.GHTSubTest50 = test1;
         test1             = this.GHTSubTest51;
         control1          = this.Table8;
         this.AddAttributes(ref test1, ref control1);
         this.Table8       = (Table)control1;
         this.GHTSubTest51 = test1;
     }
     catch (Exception exception2)
     {
         // ProjectData.SetProjectError(exception2);
         Exception exception1 = exception2;
         this.GHTSubTestBegin();
         this.GHTSubTestUnexpectedExceptionCaught(exception1);
         this.GHTSubTestEnd();
         // ProjectData.ClearProjectError();
     }
 }
Example #33
0
        private static string GetMessage(Page page, ref DataTable dt)
        {
            StringBuilder message = new StringBuilder();

            System.Web.UI.Control control;
            string columnType, controlType;

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (dt.Rows[i]["ISPRIMARY"].ToString().ToUpper() == "1")
                {
                    continue;                                                        //主键不处理
                }
                columnType = dt.Rows[i]["TYPE"].ToString();
                switch (columnType)
                {
                case "String":
                    if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 1)
                    {
                        continue;                                                  //允许为空,不处理
                    }
                    controlType = dt.Rows[i]["CUSTOM_CONTROL_TYPE"].ToString();
                    switch (controlType)
                    {
                    case "TextBox":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());                           //不存在
                        }
                        System.Web.UI.WebControls.TextBox txt = (System.Web.UI.WebControls.TextBox)control;
                        if (txt.Text.Trim() == "")
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());           //不允许为空
                        }
                        break;

                    case "DropDownList":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.DropDownList ddl = (System.Web.UI.WebControls.DropDownList)control;
                        if (ddl.SelectedIndex < 0)
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                        }
                        break;

                    case "RadioButtonList":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.RadioButtonList rbl = (System.Web.UI.WebControls.RadioButtonList)control;
                        if (rbl.SelectedIndex < 0)
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                        }
                        break;

                    case "HtmlComboBox":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        PlatForm.CustomControlLib.HtmlComboBox hcb = (PlatForm.CustomControlLib.HtmlComboBox)control;
                        if (hcb.Text.Trim() == "")
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                        }
                        break;

                    //case "ValidatePassword":
                    //    control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                    //    if (control == null) return dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString();
                    //    PlatForm.CustomControlLib.ValidatePasswordByRole vpr = (PlatForm.CustomControlLib.ValidatePasswordByRole)control;
                    //    if (vpr.Text.Trim() == "")
                    //        message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                    //    break;
                    case "HtmlInputText":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.HtmlControls.HtmlInputText hControl = (System.Web.UI.HtmlControls.HtmlInputText)control;
                        if (hControl.Value.Trim() == "")
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                        }
                        break;

                    default:
                        break;
                    }
                    break;

                case "Datetime":
                    controlType = dt.Rows[i]["CUSTOM_CONTROL_TYPE"].ToString();
                    switch (controlType)
                    {
                    case "TextBox":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.TextBox txt = (System.Web.UI.WebControls.TextBox)control;

                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 1)
                        {
                            if (txt.Text.Trim() == "")
                            {
                                continue;
                            }
                            DateTime dtTemp;
                            if (!DateTime.TryParse(txt.Text.Trim(), out dtTemp))
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "TimeValueError").ToString());          //时间格式不对!
                            }
                        }
                        else
                        {
                            if (txt.Text.Trim() == "")
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                            else
                            {
                                DateTime dtTemp;
                                if (!DateTime.TryParse(txt.Text.Trim(), out dtTemp))
                                {
                                    message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "TimeValueError").ToString());
                                }
                            }
                        }
                        break;

                    case "DropDownList":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.DropDownList ddl = (System.Web.UI.WebControls.DropDownList)control;
                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 1)
                        {
                            if (ddl.SelectedIndex < 0)
                            {
                                continue;
                            }
                            DateTime dtTemp;
                            if (!DateTime.TryParse(ddl.SelectedItem.Text, out dtTemp))
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "TimeValueError").ToString());
                            }
                        }
                        else
                        {
                            if (ddl.SelectedIndex < 0)
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                            else
                            {
                                DateTime dtTemp;
                                if (!DateTime.TryParse(ddl.SelectedItem.Text, out dtTemp))
                                {
                                    message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "TimeValueError").ToString());
                                }
                            }
                        }
                        break;

                    case "WebDateLib":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        PlatForm.CustomControlLib.WebDate wbl = (PlatForm.CustomControlLib.WebDate)control;
                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 0)          //时间格式肯定对
                        {
                            if (wbl.Text == "")
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                        }
                        //2008年12月30日 45时24分
                        DateTime temp = wbl.getTime();
                        if (temp.ToString("yyyyMMdd") == "00010101")
                        {
                            message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "TimeValueError").ToString());
                        }
                        break;

                    default:
                        break;
                    }
                    break;

                case "Numeric":
                    controlType = dt.Rows[i]["CUSTOM_CONTROL_TYPE"].ToString();
                    switch (controlType)
                    {
                    case "TextBox":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.TextBox txt = (System.Web.UI.WebControls.TextBox)control;
                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 1)
                        {
                            if (txt.Text.Trim() == "")
                            {
                                continue;
                            }

                            decimal dc;
                            if (!Decimal.TryParse(txt.Text.Trim(), out dc))
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NumericalValeError").ToString());           //不是数值类型
                            }
                        }
                        else
                        {
                            if (txt.Text.Trim() == "")
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                            else
                            {
                                decimal dc;
                                if (!Decimal.TryParse(txt.Text.Trim(), out dc))
                                {
                                    message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NumericalValeError").ToString());
                                }
                            }
                        }
                        break;

                    case "DropDownList":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.DropDownList ddl = (System.Web.UI.WebControls.DropDownList)control;
                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) == 1)
                        {
                            if (ddl.SelectedIndex < 0)
                            {
                                continue;
                            }
                            decimal dc;
                            if (!Decimal.TryParse(ddl.SelectedItem.Value, out dc))
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NumericalValeError").ToString());
                            }
                        }
                        else
                        {
                            if (ddl.SelectedIndex < 0)
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                            else
                            {
                                decimal dc;
                                if (!Decimal.TryParse(ddl.SelectedItem.Value, out dc))
                                {
                                    message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NumericalValeError").ToString());
                                }
                            }
                        }
                        break;

                    case "CheckBox":
                        break;

                    case "RadioButtonList":
                        control = page.FindControl(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString());
                        if (control == null)
                        {
                            return(dt.Rows[i]["CUSTOM_CONTROL_NAME"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "ControlInexistence").ToString());
                        }
                        System.Web.UI.WebControls.RadioButtonList rbl = (System.Web.UI.WebControls.RadioButtonList)control;
                        if (Convert.ToInt16(dt.Rows[i]["ISNULL"]) != 1)
                        {
                            if (rbl.SelectedIndex < 0)
                            {
                                message.Append(dt.Rows[i]["DESCR"].ToString() + HttpContext.GetGlobalResourceObject("WebGlobalResource", "NoEmpty").ToString());
                            }
                        }
                        break;

                    default:
                        break;
                    }
                    break;

                default:
                    break;
                } //switch
            }     //for
            return(message.ToString());
        }
Example #34
0
 protected override void CreateChildControls()
 {
     ctrl    = new System.Web.UI.WebControls.RadioButtonList();
     ctrl.ID = "ctrl";
     Controls.Add(ctrl);
 }
Example #35
0
 public static void SetLists(System.Web.UI.WebControls.RadioButtonList myListControl, DataSet myData)
 {
     AssemblingList(myListControl, myData);
 }
Example #36
0
        public static void SetLists(System.Web.UI.WebControls.RadioButtonList myListControl, string operate, string userID, string Para1, string Para2)
        {
            DataSet myData = myListReader(operate, userID, Para1, Para2);

            AssemblingList(myListControl, myData);
        }