????? ???? ???? ?????? ???? ??????? ???? ??? ???? ???? ???? HtmlSelect

?????? ????????? ?????? ?????????
???? ???????: 309338 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

??? ??????? ???? ???? RadioButton ?? DropDownList ??? ????? ??? ??? ???? ??????? ?? ???? ???? ???? ??????? ?? ??? ????? ????? ???? ??????? ??? ???? ???????.

??? ???? ??????? ??? ??????? RadioButtonList
<asp:RadioButtonList id="RadioButtonList1" runat="server">
	<asp:ListItem Value="v1" Key="k1">1</asp:ListItem>	
</asp:RadioButtonList>
				
- ?? -
RadioButtonList1.Items[0].Attributes.Add("key", "k1");
				
??? ????? ??????? ??????:
<input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="v1" />
<label for="RadioButtonList1_0">1</label>
				
?????? ??? ??????? DropDownList
<asp:DropDownList id="DropDownList1" runat="server">
	<asp:ListItem Value="v1" Key="k1">1</asp:ListItem>
</asp:DropDownList>
				
??? ????? ??????? ??????:
<option value=v1>1</option>
				
"????? = k1" ??? ?????.

?????

????? ???? ???? ???? ??????? ????? ???? ??? AttributeCollection. ????? ???? ???? ?????? ???? ??????? ???? ???? ???? RadioButtonList ?? ???? ???? DropDownList ? ?? ??? ??????? ????? ???? ??????? ???? ???? ???????? ??? ????? ???? ???? ?????? ???? ??????? (??????? ?? ???? ??????).

????

??????? ?????? ??? ??? ??????? ?? ???? ?????? RadioButtonList ?????? ?????? ?? ????? ?????? HtmlInputRadioButton. ??? ???? ??????:
<input id="Radio01" type="radio" name="group1" Key="k1" runat="server" >
				
?????? ??? ??? ??????? ?? ???? ?????? DropDownList ?????? ???? ?????? HtmlSelect. ??? ???? ??????:
<select runat="server">
	<option value="v1" id="ID1" key="k1">1</option>
</select>
				

?????

????? ??? ?????? ??? ???????.

??????? ????

?? ??? "????" ?? ??? ??????? ?? ??????? ???? ?????? HtmlSelect ?????? ????? ????? ???? expando ??? ???????? ???? ???? DropDownList. ????? ?????? ??? ???? ??????? ?? ???? ??????? ????? ???????, ???? ????? ???? expando ???? ?????. ????? ?????? HtmlSelect ???????? ???? expando ??? ???? HTML-?????? ?? ???? ?????. ??? ????? ?? ???? ??? ???? expando ?? ???? ???? DropDownList ???????? ???? ?? ???? ????? ?????? ?????. ??? ???? ??????? ?? ????? ??????? ??? ???????? ??? ???? ?? ???? ???? DropDownList.

???????

???? ???????: 309338 - ????? ??? ??????: 04/?? ?????/1424 - ??????: 3.3
????? ???
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
????? ??????: 
kbmt kbprb kbreadme kbservercontrols KB309338 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????309338

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com