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

Showing posts with label Radio button list bind. Show all posts
Showing posts with label Radio button list bind. Show all posts

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

♠ Posted by uvesh in

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/