How To Bind Data In Radio Button List In Asp.net?

1

1 Answers

Selvam Shanmugam Profile
This is one Example for TO Bind Data in Radio Button List 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

sub displayMessage(s as Object,e As EventArgs)
lbl1.text="Your favorite country is: " & rb.SelectedItem.Text />end sub






AutoPostBack="True" onSelectedIndexChanged="displayMessage" />





Answer Question

Anonymous