Disable radio button list
Posted on 2006-11-05
I have 2 radio lists, if somebody chooses 'Yes' for the first question then the 2nd question does not apply.
I thought it would be a nice touch to disable this 2nd control to give a visual clue but can't seem to get it to happen.
Here is the code, any idea why not working and/or how to make it happen?
Protected Sub RdNZresident_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RdNZresident.SelectedIndexChanged
If RdNZresident.SelectedItem.Value = "Yes" Then
RdNZpermit.Enabled = False