D
Dan
I'm binding a datasource to a Radiobuttonlist like this:
rbtnLocations.DataSource = MyDataReader
rbtnLocations.DataTextField = "ID"
rbtnLocations.DataValueField = "LocationName"
rbtnLocations.DataBind()
I want to add an onclick event that will acquire the currently selected
radio button.
Something as simple as popping a javascript alert like this:
rbtnLocations.Attributes.Add("onClick", "alert('You selected - '" &
rbtnLocations.ClientID & ".SelectedItem')")
This doesn't work - any ideas anyone?
Thanks, Dan.
rbtnLocations.DataSource = MyDataReader
rbtnLocations.DataTextField = "ID"
rbtnLocations.DataValueField = "LocationName"
rbtnLocations.DataBind()
I want to add an onclick event that will acquire the currently selected
radio button.
Something as simple as popping a javascript alert like this:
rbtnLocations.Attributes.Add("onClick", "alert('You selected - '" &
rbtnLocations.ClientID & ".SelectedItem')")
This doesn't work - any ideas anyone?
Thanks, Dan.