473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

radio button postback

I have two radio buttons (RB1 + RB2).

The page starts with RB2 selected. Both are enabled.

Action 1 - I press RB1 a postback event happens... but the event handler for
RB1 (CheckedChanged) isn't called.

Action 2 - I press RB2 a postback even happens... everything works good.

Action 3 - I press RB1 a second time... postback event happens + the event
handler code is called.

Does anyone know how a radio button could cause a postback... but not have
its event handler called?

andrew
Nov 19 '05 #1
2 1412
perhaps the postback isnt checking for this, the IsPostBack() check, and you
are redefining?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"MER78" wrote:
I have two radio buttons (RB1 + RB2).

The page starts with RB2 selected. Both are enabled.

Action 1 - I press RB1 a postback event happens... but the event handler for
RB1 (CheckedChanged) isn't called.

Action 2 - I press RB2 a postback even happens... everything works good.

Action 3 - I press RB1 a second time... postback event happens + the event
handler code is called.

Does anyone know how a radio button could cause a postback... but not have
its event handler called?

andrew

Nov 19 '05 #2
Action 1 - OnInit, PageLoad + OnUnload are hit.
Action 2 - OnInit, PageLoad, RB2.CheckedChanged + OnUnload are hit.
Action 3 - OnInit, PageLoad, RB1.CheckedChanged + OnUnload are hit.

In PageLoad the code is "If Not Page.IsPostBack Then" and all 3 times it is
a postback... so it skips all the code in that method.

"Curt_C [MVP]" wrote:
perhaps the postback isnt checking for this, the IsPostBack() check, and you
are redefining?

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Davis | last post by:
I created a ASP.NET Web Form using VB.NET with a text box, 2 radio buttons. When the user click the first radio button, the text will change to uppercase. If the user clicks the other radio button,...
2
by: tshad | last post by:
I have 2 radio buttons: <asp:RadioButton ID="radDetail" GroupName="detailSummary" Text="Detail" checkedChanged="RadDetail_Clicked" runat="server" /> <asp:RadioButton ID="radSummary"...
3
by: Amelyan | last post by:
When we want radio button to belong to a group name we say, radio1.GroupName="GroupA". In this case, radio1 will be unselected if another radio button is selected in "GroupA". Is there a way...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.