in asp.net this is not deciding which radiobutton item is clicked
If RadioButtonList1.Items(0).Enabled = True Then
TextBox1.Text = "hello"
ElseIf RadioButtonList1.Items(1).Enabled = True Then
TextBox1.Text = "hello2"
End If
ASP.NET
Last Comment
Paul Jackson
8/22/2022 - Mon
Paul Jackson
try
If RadioButtonList1.Items(0).Checked= True Then
TextBox1.Text = "hello"
ElseIf RadioButtonList1.Items(1).Checked = True Then
TextBox1.Text = "hello2"
End If
jagguy
ASKER
this gives me an error as there is no checked property?
If RadioButtonList1.Items(0).Checked= True Then
TextBox1.Text = "hello"
ElseIf RadioButtonList1.Items(1).Checked = True Then
TextBox1.Text = "hello2"
End If
If RadioButtonList1.Items(0).
TextBox1.Text = "hello"
ElseIf RadioButtonList1.Items(1).
TextBox1.Text = "hello2"
End If