RadioBNuttonList Problem

W

Wayne Wengert

I have one aspx page that contains a radiobuttonlist control that does not
fire the SelectedIndexChanged event? I have similar controls and processes
on a dozen other pages that work fine but on this one page, the event code
(see below) is never executed? I am totally stumped. Any thoughts on how to
debug this? I put code in the sub to show the new selection in a label and
then End but that never runs?

Wayne


The sub to catch that event is as follows:
===============================
Private Sub rbList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles rbList1.SelectedIndexChanged

'Code to display the selected item in a label

Response.End

End Sub

========================================
 
B

Brock Allen

Ensure in the ASPX your <asp:RadioButtonList OnSelectedIndexChanged=""> with
the event is present or in your codebehind that in InitializeComponent the
event is being wired up. If you're using the codebehind approach, sometimes
VS.NET whacks the InitializeComponent method.
 
W

Wayne Wengert

Thanks Brock, that was the problem. I use codebehind and that got screwed
up? Working as expected now.

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top