Solved

Radio Button CheckedChanged event not firing in ASP.NET

Posted on 2002-04-10
5
3,878 Views
Last Modified: 2012-05-05
Hello all,
      I am having a problem with radio buttons on an aspx
page.  I have 6 buttons grouped under the name
of "Language"  I have code in the aspx.vb CheckedChange
event for each of the radio buttons.  When I click on the
radio button IE does a round trip to the server, but the
code in the event is not being executed.  I set a
breakpoint in each of the first line of the CheckedChange
subroutines, but the breakpoint is also not being
triggered.  The AutoPostBack property is set to True for
each of them.  Any ideas what I'm doing wrong?

Thanks much.
0
Comment
Question by:edc
  • 2
5 Comments
 
LVL 23

Expert Comment

by:naveenkohli
ID: 6931588
Have you wired up your radio buttons to the page. Meaning have you registered these radio buttons with the page to recieve the notifications.
For example if you have added radio button with id "myRadio"

myRadio.CheckedChanged += new System.EventHandler(OnRadioChecked);

OnRadioChecked will be your event handling function.

Sorry about C# code... I don't do VB.Net
0
 
LVL 1

Author Comment

by:edc
ID: 6931597
Hi naveenkohli,
  I am in fact using VB.net, and I'm not sure if there is an equivalent function in VB.net.  In reading the documentation it looks as if this is done automatically.  If anyone does know, please share.
0
 
LVL 23

Accepted Solution

by:
naveenkohli earned 50 total points
ID: 6931649
They are automatically wired if AutoEventWireup attribute is set to true at the top of your aspx page. By default, it is set to false. That means you have you will have to register the event handlers explicitly. What value are you using for this attribute.
0
 
LVL 58

Expert Comment

by:Gary
ID: 8831057
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by naveenkohli
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now