Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 29th, 2012, 07:13 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default RadioButton checkedchanged not firing when Checked = True at Page_load

Firstly apologies if this has been resolved in a previous post but i could not identify one similar.

I am coding in VB and have two RadioButtons

In the Page_Load i am setting one of the RadioButtons checked value to true based upon a variable.

After setting either RadioButton to checked CheckedChanged will no longer fire.

If the Radiobutton is not checked the CheckedChanged fires fine.

Example code below:

Code:
ProtectedSub Page_Load(ByVal sender AsObject, _
ByVal e As System.EventArgs) HandlesMe.Load
If AutoPreference = 1 Then
autoSelectYes.Checked = True
Else
autoSelectNo.Checked = True
EndIf
EndSub
 
ProtectedSub autoSelectYes_CheckedChanged(ByVal sender AsObject, ByVal e AsEventArgs) Handles autoSelectYes.CheckedChanged
AutoCompleteExtender3.Enabled = True
EndSub

I have looked at a few similar threads to this issue but have not found a working solution as yet.

Any direction would be superb!
 
Old March 1st, 2012, 07:20 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default Issue resolved

One of the RadioButtons had checked="True" which was then affecting the page_load setting..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiobutton returns oguchi ASP.NET 4 General Discussion 2 August 18th, 2010 12:15 AM
RadioButton with GridView Manoj Bisht ASP.NET 3.5 Professionals 1 March 18th, 2009 12:13 PM
Page_Load not firing on "Cntrl + N" kulkarnimonica ASP.NET 2.0 Professional 1 March 14th, 2008 02:09 PM
RadioButton in Datagrid FLEX abhishekchess1 Flex 1 January 7th, 2008 02:11 AM
RadioButton in Datagrid FLEX abhishekchess1 ASP.NET 1.0 and 1.1 Professional 3 September 28th, 2007 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.