Solved

Radio Button CheckedChanged event not firing in ASP.NET

Posted on 2002-04-10
5
3,946 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to show result of a NULL value at random? 33 60
Passing Parameter to Stored Procedure 4 41
ASP server side get value 15 50
Hide cell in a table 2 43
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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