Solved

Radio Button CheckedChanged event not firing in ASP.NET

Posted on 2002-04-10
5
3,894 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
migrate from classic ASP to C# .NET 5 67
UT-F and other ASP code. What is it for ? 3 31
Add server behaviors to Dreamweaver CC 2015 2 128
Select2 jquery help 9 74
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 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

12 Experts available now in Live!

Get 1:1 Help Now