|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RadioBNuttonList Problemfire 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 ======================================== 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 > > ======================================== > 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 > > > > ======================================== > > > > >
Checkbox in a datagrid always returns false
hosting app from pc query database, create control, display on page Validation on controls within a repeater Setting dropdownlist.selectedindex when entire datagrid is dynamic Re: Serialize Style to save ViewState DHTML Behaviors (HTC) in a custom server control Adding Checkboxlist/checkbox to dataGrid and retrieving selected value auto show/hide item's data DetailsView control width shrinks when click "Edit" |
|||||||||||||||||||||||