Home All Groups Group Topic Archive Search About
Author
27 Mar 2005 1:55 PM
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

========================================

Author
27 Mar 2005 3:45 PM
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> 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
>
> ========================================
>
Author
27 Mar 2005 3:56 PM
Wayne Wengert
Thanks Brock, that was the problem. I use codebehind and that got screwed
up? Working as expected now.

Wayne

Show quoteHide quote
"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:280477632475171227584864@msnews.microsoft.com...
> 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.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > 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
> >
> > ========================================
> >
>
>
>