J
Jay W
Guest
why do i get this error message:
'DataSource' is not a member of 'System.Web.UI.WebControls.RadioButton'.
when i have this code
Partial Class Practice_Arraylist
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim countries As New ArrayList
countries.Add("England")
countries.Add("France")
countries.Add("USA")
countries.Add("Russia")
countries.Add("Italy")
countries.TrimToSize()
countries.Sort()
RadioButton1.DataSource = countries
RadioButton1.DataBind()
End Sub
End Class
'DataSource' is not a member of 'System.Web.UI.WebControls.RadioButton'.
when i have this code
Partial Class Practice_Arraylist
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim countries As New ArrayList
countries.Add("England")
countries.Add("France")
countries.Add("USA")
countries.Add("Russia")
countries.Add("Italy")
countries.TrimToSize()
countries.Sort()
RadioButton1.DataSource = countries
RadioButton1.DataBind()
End Sub
End Class