Script that builds the list and binds the values in the list to the RadioButtonList control
Sub Page_Load
if Not Page.IsPostBack then
dim mycountries=New ArrayList
mycountries.Add("Norway")
mycountries.Add("Sweden")
mycountries.Add("France")
mycountries.Add("Italy")
mycountries.TrimToSize()
mycountries.Sort()
rb.DataSource=mycountries
rb.DataBind()
end if
end sub
In ASPX page add a radio control and see if properties are as mentioned below
asp:RadioButtonList id="rb" runat="server"
No comments:
Post a Comment