• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.RadioButton类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Web.UI.WebControls.RadioButton的典型用法代码示例。如果您正苦于以下问题:C# RadioButton类的具体用法?C# RadioButton怎么用?C# RadioButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RadioButton类属于System.Web.UI.WebControls命名空间,在下文中一共展示了RadioButton类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RegisterPaymentOptionControlInToggleScript

		private void RegisterPaymentOptionControlInToggleScript(Panel panel, RadioButton radioButton)
		{
			if (panel.Visible)
			{
				PaymentTogglePayOptionsScript += "document.getElementById(\"" + panel.ClientID + "\").style.display = document.getElementById(\"" + 
					radioButton.ClientID + "\").checked?'':'none';\n";
			}
		}
开发者ID:davelondon,项目名称:dontstayin,代码行数:8,代码来源:Payment.ascx.cs


示例2: RegisterRadioButton

		public virtual void RegisterRadioButton (RadioButton radioButton)
		{
			if (radio_button_group == null)
				radio_button_group = new ListDictionary();
			ArrayList radioButtons = (ArrayList) radio_button_group [radioButton.GroupName];
			if (radioButtons == null)
				radio_button_group [radioButton.GroupName] = radioButtons = new ArrayList();
			if (!radioButtons.Contains(radioButton))
				radioButtons.Add(radioButton);
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:10,代码来源:PageAdapter.cs


示例3: WebCheckListControl

		public WebCheckListControl(CheckBox controlToRepeat) {
			if(controlToRepeat == null)
				throw new ArgumentNullException("controlToRepeat");
			//This line differs in the CheckBoxList implementation
			this.controlToRepeat						= controlToRepeat;
			this.radioButton							= this.controlToRepeat as RadioButton;
			this.controlToRepeat.ID					= "0";
			this.controlToRepeat.EnableViewState		= false;
			base.Controls.Add(this.controlToRepeat);
			this.hasChanged							= false;
		}
开发者ID:aelveborn,项目名称:njupiter,代码行数:11,代码来源:WebCheckListControl.cs


示例4: GetSelectedRadioButton

 private RadioButton GetSelectedRadioButton(params RadioButton[] radioButtonGroup)
 {
     RadioButton checkedRb = new RadioButton();
     for (int i = 0; i < radioButtonGroup.Length; i++)
     {
         if (radioButtonGroup[i].Checked)
         {
             checkedRb = radioButtonGroup[i];
         }
     }
     return checkedRb;
 }
开发者ID:yogendratamang48,项目名称:NewEmployee,代码行数:12,代码来源:Employee.aspx.cs


示例5: AttachChildControls

 protected override void AttachChildControls()
 {
     this.radioAdminSelect = (RadioButton) this.FindControl("radioAdminSelect");
     this.txtTitle = (TextBox) this.FindControl("txtTitle");
     this.txtContent = (TextBox) this.FindControl("txtContent");
     this.btnRefer = ButtonManager.Create(this.FindControl("btnRefer"));
     this.btnRefer.Click += new EventHandler(this.btnRefer_Click);
     if (!this.Page.IsPostBack)
     {
         this.radioAdminSelect.Enabled = false;
         this.radioAdminSelect.Checked = true;
         this.txtTitle.Text = this.txtTitle.Text.Trim();
         this.txtContent.Text = this.txtContent.Text.Trim();
     }
 }
开发者ID:davinx,项目名称:himedi,代码行数:15,代码来源:UserSendMessage.cs


示例6: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            Ankieta a = baza.Ankietas.Single(x => x.ID_ankiety == idAnkiety);
            Label nazwa_ankiety = new Label();
            nazwa_ankiety.Text = a.tytul;
            nazwa_ankiety.Font.Size = FontUnit.XLarge;
            this.Controls.Add(nazwa_ankiety);
            this.Controls.Add(new LiteralControl("<br />"));

            foreach (Pytanie p in a.Pytanies)
            {
                this.Controls.Add(new LiteralControl("<br />"));
                int typ = p.TypPytania.ID_typu;
                Label tresc_pytania = new Label();
                tresc_pytania.Text = p.tresc;
                tresc_pytania.Font.Size = FontUnit.XLarge;
                this.Controls.Add(tresc_pytania);
                this.Controls.Add(new LiteralControl("<br />"));

                foreach (Odpowiedz o in p.Odpowiedzs)
                {
                    switch (typ)
                    {
                        case 2:
                            CheckBox c = new CheckBox();
                            c.Text = o.tresc;
                            c.ID = Convert.ToString(o.ID_odpowiedzi);
                            this.Controls.Add(c);
                            lista_checkboxow.Add(c);
                            this.Controls.Add(new LiteralControl("<br />"));
                            break;
                        case 1:
                            RadioButton r = new RadioButton();
                            r.Text = o.tresc;
                            r.GroupName = Convert.ToString(o.pytanie);
                            r.ID = Convert.ToString(o.ID_odpowiedzi);
                            r.Checked = true;
                            this.Controls.Add(r);
                            lista_radiobuttonow.Add(r);
                            this.Controls.Add(new LiteralControl("<br />"));
                            break;
                    }
                }
            }
        }
开发者ID:kleks,项目名称:Ankieta,代码行数:45,代码来源:KontrolkaRozwiazAnkiete.ascx.cs


示例7: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            Ux_TheResponse.ID += (PageQuestion == null) ? "_" + PageElement.ElementId : "_P" + PageQuestion.PagePredefinedQuestionId;
            Ux_ErrorMessage.AssociatedControlID = Ux_TheResponse.ID;
            Ux_ElementTitel.AssociatedControlID = Ux_TheResponse.ID;

            Ux_ElementTitel.Text = PageElement.ElementText;
            if (Choices != null &&
                Choices.Count > 0)
            {                
                    foreach (PageElementChoiceDto choice in Choices)
                    {
                        Panel p = new Panel();
                        p.ID = "Uxd_Panel_" + choice.ChoiceId;
                        if (Choices.Count < 2)
                        {
                            CheckBox cb = new CheckBox();
                            cb.ID = "Uxd_CheckRadio_" + choice.ChoiceId;
                            //cb.CssClass = WebConstants.CssClassCheckRadio;
                            p.Controls.Add(cb);
                        }
                        else
                        {
                            RadioButton rb = new RadioButton();
                            rb.ID = "Uxd_CheckRadio_" + choice.ChoiceId;
                            //rb.CssClass = WebConstants.CssClassCheckRadio;
                            rb.GroupName =  "RadioGroup_" + _element.ElementId;
                            p.Controls.Add(rb);
                        }

                        Label l = new Label();
                        l.Text = choice.ElementText;
                        l.AssociatedControlID = "Uxd_CheckRadio_" + choice.ChoiceId;                        
                        l.CssClass = WebConstants.CssClassLabelNoValidationError;
                        p.Controls.Add(l);

                        p.CssClass = WebConstants.CssClassChoiceElement;
                        Ux_TheResponse.Controls.Add(p);                        
                    }               
            }
        }
开发者ID:amalapannuru,项目名称:RFC,代码行数:41,代码来源:WucQuestionCrmRequestedUnAndSubscribe.ascx.cs


示例8: InitializeDataCell

        protected override void InitializeDataCell(DataControlFieldCell cell, DataControlRowState rowState)
        {
            base.InitializeDataCell(cell, rowState);

            // Add a radiobutton anyway, if not done already
            if (cell.Controls.Count == 0)
            {
                if (gridID != string.Empty && !DesignMode)
                {
                    Control gvw = util.ObterControle<WebControl>(((Page)HttpContext.Current.CurrentHandler).Controls, gridID);
                    if (gvw != null)
                        if (((GridView)gvw).ModelSelect == GridView.ModelSelectType.RowSelected)
                        {
                            cell.CssClass = "coluna";
                            //cell.Style["visibility"] = "hidden";
                        }
                }
                RadioButton rbn = new RadioButton();
                rbn.ID = SelectRadioButtonCustom.SelectRadioButtonCustomID;
                cell.Controls.Add(rbn);
            }
        }
开发者ID:ViniciusConsultor,项目名称:testeacontep,代码行数:22,代码来源:SelectRadioButtonCustom.cs


示例9: RegisterRadioButton

 public virtual void RegisterRadioButton(RadioButton radioButton)
 {
     string groupName = radioButton.GroupName;
     if (!string.IsNullOrEmpty(groupName))
     {
         ArrayList list = null;
         if (this._radioButtonGroups == null)
         {
             this._radioButtonGroups = new ListDictionary();
         }
         if (this._radioButtonGroups.Contains(groupName))
         {
             list = (ArrayList) this._radioButtonGroups[groupName];
         }
         else
         {
             list = new ArrayList();
             this._radioButtonGroups[groupName] = list;
         }
         list.Add(radioButton);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:22,代码来源:PageAdapter.cs


示例10: GetPublishAtRow

        private TableRow GetPublishAtRow()
        {
            TableRow row = new TableRow();
            TableCell cell = new TableCell();
            Panel userControlGroup = new Panel();
            publishAtDropdown = new DropDownList();

            publishAtDropdown.ID = "ddlPublishAt";
            publishAtDropdown.Items.Insert(0, new ListItem("(None)"));
            SPListItemCollection publishAtItems = GetListItems("Organization Units", new SPQuery());

            if (publishAtItems != null)
            {
                foreach (SPListItem item in publishAtItems)
                {
                    publishAtDropdown.Items.Add(Convert.ToString(item["Title"]));
                }
            }

            optPublishAt = new RadioButton();
            optPublishAt.Text = "Publish at ";
            optPublishAt.GroupName = "nc-contentquery-search";

            userControlGroup.CssClass = "UserControlGroup";
            userControlGroup.Controls.Add(optPublishAt);
            userControlGroup.Controls.Add(publishAtDropdown);
            cell.Controls.Add(userControlGroup);

            row.Cells.Add(cell);
            return row;
        }
开发者ID:MohitVash,项目名称:TestProject,代码行数:31,代码来源:NCNewssitePatch1CustomContentQueryToolPart.cs


示例11: Page_Load

        // NpgsqlConnection conn = new NpgsqlConnection("Server=webblabb.miun.se;Port=5432; User Id=pgmvaru_g7;Password=akrobatik;Database=pgmvaru_g7;SSL=true;");
        protected void Page_Load(object sender, EventArgs e)
        {
            //Skapar två nya xmldokument
            XmlDocument xmldoc = new XmlDocument();
            XmlDocument xmldoc2 = new XmlDocument();

            right.LoadXml("<test></test>");
            wrong.LoadXml("<test></test>");
            //Laddar in vårat xmldokument i xmldoc
            xmldoc.Load(Server.MapPath("XmlQuestions.xml"));

            //Laddar endast in taggar i xmldoc2 som är identiska med XmlQuestions.xml
            xmldoc2.LoadXml("<categories></categories>");

            //Skapar ny array och stoppar in 25 st variabler av typen int
            int[] arrayQuestions = RandomNumbers(1, 25, 4);

            //Hämtar frågor från orginaldokumentet och stoppar in detta i det nya
            foreach (int i in arrayQuestions)
            {
                XmlNode newnode = xmldoc2.ImportNode(xmldoc.SelectSingleNode("/categories/question[@id='" + i + "']"), true);
                XmlNode parent = xmldoc2.SelectSingleNode("categories");
                parent.AppendChild(newnode);
                xmldoc2.Save(Server.MapPath("usertest.xml"));
            }
            //Lägger in alla question nodes i en XML lista
            XmlNodeList lst  = xmldoc2.SelectNodes("categories/question");
            //Loopar igenom xml listan 1st
            int count = 1;
            foreach (XmlNode node in lst)
            {
                string attributeID = node.Attributes["id"].Value;
                string attributeMulti = node.Attributes["multi"].Value;
                string img = node.Attributes["image"].Value;

                    int i = Convert.ToInt16(attributeID);
                    //Skapar nya rader
                TableRow row1 = new TableRow();
                TableRow row2 = new TableRow();
                TableRow row3 = new TableRow();
                TableRow row4 = new TableRow();
                TableRow row5 = new TableRow();
                TableRow row6 = new TableRow();
                    //Skapar nya celler i raderna ovan
                TableCell cell1 = new TableCell();
                TableCell cell2 = new TableCell();
                TableCell cell3 = new TableCell();
                TableCell cell4 = new TableCell();
                TableCell cell5 = new TableCell();
                TableCell cell6 = new TableCell();
                TableCell imgcell = new TableCell();
                    //Skapar nya radiobuttons
                RadioButton radiob1 = new RadioButton();
                RadioButton radiob2 = new RadioButton();
                RadioButton radiob3 = new RadioButton();
                RadioButton radiob4 = new RadioButton();
                    //Skapar nya checkboxes
                CheckBox checkbox1 = new CheckBox();
                CheckBox checkbox2 = new CheckBox();
                CheckBox checkbox3 = new CheckBox();
                CheckBox checkbox4 = new CheckBox();
                    //Ger ett gruppnamn till radiobuttons
                radiob1.GroupName = "gr" + i.ToString();
                radiob2.GroupName = "gr" + i.ToString();
                radiob3.GroupName = "gr" + i.ToString();
                radiob4.GroupName = "gr" + i.ToString();
                    //Sätter ett unikt namn till varje radiobutton
                radiob1.ID = "raid" + i;
                    //Skapar ny label för varje fråga
                Label lblQuestion = new Label();

                    //Om frågan bara har ett svarsalternativ som är rätt
                if(attributeMulti == "false")
                {
                    lblQuestion.Text = count + ": " + (xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']").FirstChild.InnerText);

                    radiob1.Text = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id = '1']").InnerText;
                    XmlNode n = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id='1']");
                    string at = n.Attributes["correct"].Value;
                    radiob1.Attributes.Add("correct", at);

                    radiob2.Text = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id = '2']").InnerText;
                    n = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id='2']");
                    at = n.Attributes["correct"].Value;
                    radiob2.Attributes.Add("correct", at);

                    radiob3.Text = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id = '3']").InnerText;
                    n = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id='3']");
                    at = n.Attributes["correct"].Value;
                    radiob3.Attributes.Add("correct", at);

                    radiob4.Text = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id = '4']").InnerText;
                    n = xmldoc2.SelectSingleNode("/categories/question[@id='" + i + "']/answer/answer[@id='4']");
                    at = n.Attributes["correct"].Value;
                    radiob4.Attributes.Add("correct", at);
                        //Lägger in radiobuttons i cellerna
                    cell2.Controls.Add(radiob1);
                    cell3.Controls.Add(radiob2);
                    cell4.Controls.Add(radiob3);
//.........这里部分代码省略.........
开发者ID:systemvetenskap,项目名称:interaktiva_g7v2,代码行数:101,代码来源:quest.aspx.cs


示例12: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            #region Loop to display door types as radio buttons

            //For loop to get through all the possible door types: Cabana, French, Patio, Opening Only (No Door)
            for (int typeCount = 0; typeCount < 4; typeCount++)
            {
                //Conditional operator to set the current door type with the right label
                string title = Constants.DOOR_TYPES[typeCount]; //(typeCount == 1) ? "Cabana" : (typeCount == 2) ? "French" : (typeCount == 3) ? "Patio" : "NoDoor";

                if (title == "NoDoor")
                {
                    continue;
                }
                else
                {
                    //li tag to hold door type radio button and all its content
                    DoorOptions.Controls.Add(new LiteralControl("<li>"));
                }

                //Door type radio button
                RadioButton typeRadio = new RadioButton();
                typeRadio.ID = "radType" + title; //Adding appropriate id to door type radio button
                typeRadio.GroupName = "doorTypeRadios";         //Adding group name for all door types
                typeRadio.Attributes.Add("onclick", "typeRowsDisplayed('" + title + "')"); //On click event to display the proper fields/rows
                if (title == "Cabana")
                    typeRadio.Checked = true;

                //Door type radio button label for clickable area
                Label typeLabelRadio = new Label();
                typeLabelRadio.AssociatedControlID = "radType" + title;   //Tying this label to the radio button

                //Door type radio button label text
                Label typeLabel = new Label();
                typeLabel.AssociatedControlID = "radType" + title;    //Tying this label to the radio button
                typeLabel.Text = title;     //Displaying the proper texted based on current title variable

                DoorOptions.Controls.Add(typeRadio);        //Adding radio button control to placeholder DoorOptions
                DoorOptions.Controls.Add(typeLabelRadio);   //Adding label control to placeholder DoorOptions
                DoorOptions.Controls.Add(typeLabel);        //Adding label control to placeholder DoorOptions

                //New instance of a table for every door type
                Table tblDoorDetails = new Table();

                tblDoorDetails.ID = "tblDoorDetails" + title; //Adding appropriate id to the table
                tblDoorDetails.CssClass = "tblTextFields";                  //Adding CssClass to the table for styling

                //Creating cells and controls for rows

                #region Table:Default Row Title Current Door (tblDoorDetails)

                TableRow doorTitleRow = new TableRow();
                doorTitleRow.ID = "rowDoorTitle" + title;
                doorTitleRow.Attributes.Add("style", "display:none;");
                TableCell doorTitleLBLCell = new TableCell();

                Label doorTitleLBL = new Label();
                doorTitleLBL.ID = "lblDoorTitle" + title;
                doorTitleLBL.Text = "Select door details:";
                doorTitleLBL.Attributes.Add("style", "font-weight:bold;");

                #endregion

                #region Table:Second Row Door Style (tblDoorDetails)

                TableRow doorStyleRow = new TableRow();
                doorStyleRow.ID = "rowDoorStyle" + title;
                doorStyleRow.Attributes.Add("style", "display:none;");
                TableCell doorStyleLBLCell = new TableCell();
                TableCell doorStyleDDLCell = new TableCell();

                Label doorStyleLBL = new Label();
                doorStyleLBL.ID = "lblDoorStyle" + title;
                doorStyleLBL.Text = "Style";

                DropDownList doorStyleDDL = new DropDownList();
                doorStyleDDL.ID = "ddlDoorStyle" + title;
                doorStyleDDL.Attributes.Add("onchange", "doorStyle('" + title + "')");
                if (title == "Patio")
                {
                    for (int j = 0; j < Constants.DOOR_ORDER_PATIO.Count(); j++)
                    {
                        doorStyleDDL.Items.Add(new ListItem(Constants.DOOR_ORDER_PATIO[j], Constants.DOOR_ORDER_PATIO[j]));
                    }
                }
                else
                {
                    for (int j = 0; j < Constants.DOOR_ORDER_ENTRY.Count(); j++)
                    {
                        doorStyleDDL.Items.Add(new ListItem(Constants.DOOR_ORDER_ENTRY[j], Constants.DOOR_ORDER_ENTRY[j]));
                    }
                }

                doorStyleLBL.AssociatedControlID = "ddlDoorStyle" + title;

                #endregion

                #region Table:Sixteenth Row Door V4T Vinyl Tint (tblDoorDetails)

                TableRow doorVinylTintRow = new TableRow();
//.........这里部分代码省略.........
开发者ID:kbrougham,项目名称:Sunspace,代码行数:101,代码来源:WizardDoorOnlyEdit.aspx.cs


示例13: addRadioButtonList

        protected void addRadioButtonList(HtmlTable prevalueTable, string title, string strCheckBoxList, string checkedRadio, string className)
        {
            HtmlTableRow tr = new HtmlTableRow();
            prevalueTable.Rows.Add(tr);

            HtmlTableCell td = new HtmlTableCell();
            tr.Cells.Add(td);
            td.InnerText = title;

            td = new HtmlTableCell();
            tr.Cells.Add(td);

            foreach(string radioButtonText in strCheckBoxList.Split(',')){
                RadioButton rb = new RadioButton();
                rb.Text = radioButtonText;
                rb.ID = radioButtonText;
                rb.GroupName = className;
                rb.CssClass = className;

                if (radioButtonText == checkedRadio)
                {
                    rb.Checked = true;
                }
                td.Controls.Add(rb);

            }
        }
开发者ID:kgiszewski,项目名称:WidgetBuilder,代码行数:27,代码来源:PrevalueEditor.cs


示例14: RunDesignTimeTests

		private void RunDesignTimeTests()
		{
			try
			{
				this.DataGrid1.DataSource = WebControl_Attributes.m_dataSource;
				this.DataGrid2.DataSource = WebControl_Attributes.m_dataSource;
				this.DataList1.DataSource = WebControl_Attributes.m_dataSource;
				this.DataList2.DataSource = WebControl_Attributes.m_dataSource;
				this.DataGrid1.DataBind();
				this.DataGrid2.DataBind();
				this.DataList1.DataBind();
				this.DataList2.DataBind();
				GHTSubTest test1 = this.GHTSubTest25;
				WebControl control1 = this.Button1;
				this.AddAttributes(ref test1, ref control1);
				this.Button1 = (Button) control1;
				this.GHTSubTest25 = test1;
				test1 = this.GHTSubTest26;
				control1 = this.CheckBox1;
				this.AddAttributes(ref test1, ref control1);
				this.CheckBox1 = (CheckBox) control1;
				this.GHTSubTest26 = test1;
				test1 = this.GHTSubTest28;
				control1 = this.HyperLink1;
				this.AddAttributes(ref test1, ref control1);
				this.HyperLink1 = (HyperLink) control1;
				this.GHTSubTest28 = test1;
				test1 = this.GHTSubTest30;
				control1 = this.Image1;
				this.AddAttributes(ref test1, ref control1);
				this.Image1 = (Image) control1;
				this.GHTSubTest30 = test1;
				test1 = this.GHTSubTest32;
				control1 = this.ImageButton1;
				this.AddAttributes(ref test1, ref control1);
				this.ImageButton1 = (ImageButton) control1;
				this.GHTSubTest32 = test1;
				test1 = this.GHTSubTest34;
				control1 = this.Label1;
				this.AddAttributes(ref test1, ref control1);
				this.Label1 = (Label) control1;
				this.GHTSubTest34 = test1;
				test1 = this.GHTSubTest36;
				control1 = this.LinkButton1;
				this.AddAttributes(ref test1, ref control1);
				this.LinkButton1 = (LinkButton) control1;
				this.GHTSubTest36 = test1;
				test1 = this.GHTSubTest37;
				control1 = this.Panel1;
				this.AddAttributes(ref test1, ref control1);
				this.Panel1 = (Panel) control1;
				this.GHTSubTest37 = test1;
				test1 = this.GHTSubTest38;
				control1 = this.RadioButton1;
				this.AddAttributes(ref test1, ref control1);
				this.RadioButton1 = (RadioButton) control1;
				this.GHTSubTest38 = test1;
				test1 = this.GHTSubTest39;
				control1 = this.TextBox1;
				this.AddAttributes(ref test1, ref control1);
				this.TextBox1 = (TextBox) control1;
				this.GHTSubTest39 = test1;
				test1 = this.GHTSubTest40;
				control1 = this.DropDownList1;
				this.AddAttributes(ref test1, ref control1);
				this.DropDownList1 = (DropDownList) control1;
				this.GHTSubTest40 = test1;
				test1 = this.GHTSubTest41;
				control1 = this.ListBox1;
				this.AddAttributes(ref test1, ref control1);
				this.ListBox1 = (ListBox) control1;
				this.GHTSubTest41 = test1;
				test1 = this.GHTSubTest42;
				control1 = this.RadioButtonList1;
				this.AddAttributes(ref test1, ref control1);
				this.RadioButtonList1 = (RadioButtonList) control1;
				this.GHTSubTest42 = test1;
				test1 = this.GHTSubTest43;
				control1 = this.CheckBoxList1;
				this.AddAttributes(ref test1, ref control1);
				this.CheckBoxList1 = (CheckBoxList) control1;
				this.GHTSubTest43 = test1;
				test1 = this.GHTSubTest50;
				control1 = this.DataGrid1;
				this.AddAttributes(ref test1, ref control1);
				this.DataGrid1 = (DataGrid) control1;
				this.GHTSubTest50 = test1;
				test1 = this.GHTSubTest51;
				control1 = this.DataGrid2.Items[0];
				this.AddAttributes(ref test1, ref control1);
				this.GHTSubTest51 = test1;
				test1 = this.GHTSubTest52;
				control1 = this.DataList1;
				this.AddAttributes(ref test1, ref control1);
				this.DataList1 = (DataList) control1;
				this.GHTSubTest52 = test1;
				test1 = this.GHTSubTest53;
				control1 = this.DataList2.Items[0];
				this.AddAttributes(ref test1, ref control1);
				this.GHTSubTest53 = test1;
//.........这里部分代码省略.........
开发者ID:nobled,项目名称:mono,代码行数:101,代码来源:WebControl_Attributes.aspx.cs


示例15: refControl_edit_in_select_row_to_members

        private void refControl_edit_in_select_row_to_members(int ip_i_row_index)
        {
            m_rdb_grid_edit_theo_quoc_lo_cong_trinh = WebformFunctions.getControl_in_template<RadioButton>(
                                                                                        m_grv_unc
                                                                                        , "m_rdb_grid_edit_theo_quoc_lo_cong_trinh"
                                                                                        , ip_i_row_index
                                                                                        , eGridItem.EditItem
                                                                                        );

            m_rdb_grid_edit_theo_chuong_loai_khoan_muc = WebformFunctions.getControl_in_template<RadioButton>(
                                                                                       m_grv_unc
                                                                                       , "m_rdb_grid_edit_theo_chuong_loai_khoan_muc"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_ddl_grid_edit_du_an_quoc_lo = WebformFunctions.getControl_in_template<DropDownList>(
                                                                                       m_grv_unc
                                                                                       , "m_ddl_grid_edit_du_an_quoc_lo"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_ddl_grid_edit_loai_nhiem_vu = WebformFunctions.getControl_in_template<DropDownList>(
                                                                                       m_grv_unc
                                                                                       , "m_ddl_grid_edit_loai_nhiem_vu"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_ddl_grid_edit_du_an = WebformFunctions.getControl_in_template<DropDownList>(
                                                                                       m_grv_unc
                                                                                       , "m_ddl_grid_edit_du_an"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_ddl_grid_edit_muc_tieu_muc = WebformFunctions.getControl_in_template<DropDownList>(
                                                                                       m_grv_unc
                                                                                       , "m_ddl_grid_edit_muc_tieu_muc"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_txt_grid_edit_so_tien_nop_thue = WebformFunctions.getControl_in_template<TextBox>(
                                                                                       m_grv_unc
                                                                                       , "m_txt_grid_edit_so_tien_nop_thue"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_txt_grid_edit_so_tien_tt_cho_dv_huong = WebformFunctions.getControl_in_template<TextBox>(
                                                                                       m_grv_unc
                                                                                       , "m_txt_grid_edit_so_tien_tt_cho_dv_huong"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
            m_txt_grid_edit_ghi_chu = WebformFunctions.getControl_in_template<TextBox>(
                                                                                       m_grv_unc
                                                                                       , "m_txt_grid_edit_ghi_chu"
                                                                                       , ip_i_row_index
                                                                                       , eGridItem.EditItem
                                                                                       );
        }
开发者ID:nguyendanhtu,项目名称:bki-quan-ly-du-toan,代码行数:58,代码来源:F304_nhap_giai_ngan_theo_unc.aspx.cs


示例16: AddHotels


//.........这里部分代码省略.........
                            {
                                chk.Checked = false;
                            }
                            txtSingleRoom.Text = dt.Rows[itm]["SingleRoom"].ToString();
                            txtDoubleRoom.Text = dt.Rows[itm]["DoubleRoom"].ToString();
                            txtTripleRoom.Text = dt.Rows[itm]["TripleRoom"].ToString();
                        }
                    }
                }

                if (RoleId != "18")
                {
                    Button RateButton = new Button();


                    for (int i = 0; i < gv.Rows.Count; i++)
                    {
                        RateButton = (Button)gv.Rows[i].FindControl("btnHotelRate");
                        RateButton.Visible = false;

                    }

                }

                if (RoleId == "18" && Session["OrderStatus"].ToString() != "Request for Quote")
                {
                    Button RateButton = new Button();


                    for (int i = 0; i < gv.Rows.Count; i++)
                    {
                        RateButton = (Button)gv.Rows[i].FindControl("btnHotelRate");
                        RateButton.Visible = false;

                    }
                }
                if (RoleId == "18" && (Session["OrderStatus"].ToString() == "Booked" || Session["OrderStatus"].ToString() == "To Be Reconfirmed"))
                {
                    if (ViewState["RadioBtnVsible"] != null)
                    {
                        RadioButton ConfirmrdoButton = new RadioButton();

                        for (int i = 0; i < gv.Rows.Count - 1; i++)
                        {
                            if (i == int.Parse(ViewState["RadioBtnVsible"].ToString()))
                            {
                                ConfirmrdoButton = (RadioButton)gv.Rows[i].FindControl("rdoConfirm");
                                ConfirmrdoButton.Visible = true;
                                ViewState["RadioBtnVsible"] = null;
                                break;
                            }

                        }
                    }
                }
                if (Session["OrderStatus"].ToString() == "To Be Reconfirmed")
                {
                    if (ViewState["RoomtxtVsible"] != null)
                    {
                        TextBox txtSingleRoom = new TextBox();
                        TextBox txtDoubleRoom = new TextBox();
                        TextBox txtTripleRoom = new TextBox();

                        for (int i = 0; i < gv.Rows.Count - 1; i++)
                        {
                            if (i == int.Parse(ViewState["RoomtxtVsible"].ToString()))
                            {
                                txtSingleRoom = (TextBox)gv.Rows[i].FindControl("txtSingleRoom");
                                txtSingleRoom.Visible = true;
                                txtDoubleRoom = (TextBox)gv.Rows[i].FindControl("txtDoubleRoom");
                                txtDoubleRoom.Visible = true;
                                txtTripleRoom = (TextBox)gv.Rows[i].FindControl("txtTripleRoom");
                                txtTripleRoom.Visible = true;

                                ViewState["RoomtxtVsible"] = null;
                                break;
                            }
                        }
                        if (gv.HeaderRow != null)
                        {
                            Label lblSingleRoom = (Label)gv.HeaderRow.FindControl("lblSingleRoom");
                            lblSingleRoom.Visible = true;
                            Label lblDoubleRoom = (Label)gv.HeaderRow.FindControl("lblDoubleRoom");
                            lblDoubleRoom.Visible = true;
                            Label lblTripleRoom = (Label)gv.HeaderRow.FindControl("lblTripleRoom");
                            lblTripleRoom.Visible = true;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                uppanel.Update();
            }

        }
开发者ID:pareshf,项目名称:testthailand,代码行数:101,代码来源:GitDetails.aspx.cs


示例17: WebCustomRadioButtonHtmlTextWriter

 /// <summary>コンストラクタ</summary>
 /// <param name="tw">TextWriter</param>
 /// <param name="ctrl">RadioButton Control</param>
 public WebCustomRadioButtonHtmlTextWriter(TextWriter tw, RadioButton ctrl)
     : base(tw)
 {
     // メンバに設定
     this._ctrl = ctrl;
 }
开发者ID:runceel,项目名称:OpenTouryo,代码行数:9,代码来源:WebCustomRadioButton.cs


示例18: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            blRecetas = new BlRecetas();
            Hashtable htbPermisos = (Hashtable)Session["permisos"];
            char cPermiso = 'N';

            try
            {
                Master.FindControl("btnReportes").Visible = false;

                cPermiso = (char)htbPermisos["recetas"];
                oblColonias = new MedNeg.Colonias.BlColonias();
                oblPoblaciones = new MedNeg.Poblaciones.BlPoblaciones();
                oblMunicipios = new MedNeg.Municipios.BlMunicipios();
                oblEstados = new MedNeg.Estados.BlEstados();
                imbAceptar = (ImageButton)Master.FindControl("imgBtnAceptar");
                imbAceptar.Click += new ImageClickEventHandler(imbAceptar_Click);
                imbMostrar = (ImageButton)Master.FindControl("imgBtnMostrar");
                imbMostrar.Click += new ImageClickEventHandler(imbMostrar_Click);
                imbNuevo = (ImageButton)Master.FindControl("imgBtnNuevo");
                imbNuevo.Click += new ImageClickEventHandler(imbNuevo_Click);
                imbEditar = (ImageButton)Master.FindControl("imgBtnEditar");
                imbEditar.Click += new ImageClickEventHandler(imbEditar_Click);
                imbImprimir = (ImageButton)Master.FindControl("imgBtnImprimir");
                imbImprimir.Click += new ImageClickEventHandler(imbImprimir_Click);
                imbCancelar = (ImageButton)Master.FindControl("imgBtnCancelar");
                imbCancelar.Click += new ImageClickEventHandler(this.imbCancelar_Click);
                rdbFolio = (RadioButton)Master.FindControl("rdbFiltro1");
                rdbFolio.Text = "Folio";
                rdbTipo = (RadioButton)Master.FindControl("rdbFiltro2");
                rdbTipo.Text = "Tipo";
                rdbFecha = (RadioButton)Master.FindControl("rdbFiltro3");
                rdbFecha.Text = "Fecha";
                rdbFecha.AutoPostBack = true;
                btnBuscar = (Button)Master.FindControl("btnBuscar");
                btnBuscar.Click += new EventHandler(btnBuscar_Click);
                txbBuscar = (TextBox)Master.FindControl("txtBuscar");
                lblNombreModulo = (Label)Master.FindControl("lblNombreModulo");
                lblNombreModulo.Text = "Recetas";
                lblAvisosVendedores.Text = "";

                //GT 0175
                imbReportes = (ImageButton)Master.FindControl("imgBtnReportes&qu 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.RadioButtonList类代码示例发布时间:2022-05-26
下一篇:
C# WebControls.PlaceHolder类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap