C# : Tutorial of Asp.net with c# and example

Example and code about windows application, web application, SQL, C#, WPF etc which is helpful to developer and programer.

Search This Blog

C#: How to bind radio buttonlist in asp other control like checkboxlist,listbox,dropdownlist

♠ Posted by uvesh in at Tuesday, August 12, 2014

asp.net controls which support data binding:

  • asp:CheckBoxList
  • asp:RadioButtonList
  • asp:Listbox
  • asp:DropDownList

The selectable items in each of the above controls are usually defined by one or more asp:ListItem controls

<html>
<body>

<form runat="server">
<asp:RadioButtonList id="countrylist" runat="server">
<asp:ListItem value="S" text="Sunday" />
<asp:ListItem value="M" text="Monday " />
<asp:ListItem value="T" text="Tuesday " />
<asp:ListItem value="W" text="Wednesday" />
<asp:ListItem value="Th" text="Thersday" />
<asp:ListItem value="F" text="Friday " />
<asp:ListItem value="S" text="Saturday " />
</asp:RadioButtonList>
</form>
</body>
</html>


Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


http://aspdotnethelpmaster.blogspot.in/

0 comments:

Post a Comment