473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Order of Events

I have an aspx page with multiple radio button lists and I am all tangled up
in the processing logic. I suspect that I do not understand the correct
order of the various events.

I have autopostback enabled on the radio button lists. When the user clicks
on a selection in one of the radio button lists I trap that in the event
handler and then redirect the user to an appropriate page. If the user press
"Back" and returns to the page the previous selection is still shown and if
he clicks on another selection I still get the same redirect as before - it
is as if the previous event fires again?

I tried adding some logic in the page load area to try to manage this but I
cannot find the right combination.

Specific questions:

- when the user returns via the "Back" button does page load fire again,
and if so - will IsPostBack be true?
- When the user clicks a selection in one of the radio button lists
(autopostback is enabled) does a page postback occur? If so, is that before
or after the radio button selected index event fires?

Appreciate and help here

Wayne
Nov 19 '05 #1
1 1368
The way I understand it when hitting back you're seeing your browsers
cached version of the page and a page load has not occured. If
autopostback is enable and you click the radio button a post back is
occuring. easy way to figure this is to comment out the code for your
radio buttons and add

if (Page.IsPostBack)
{
Response.Write("Page is in postback");
}
else
{
Response.Write("You are in Page Load NO Post Back has occured");
}

Nov 19 '05 #2

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

Similar topics

2
by: Sheila Jones | last post by:
Hello, I have a couple of textbox controls which each fire TextChanged events. AutoPostBack is false for both controls, so the events only actually fire when another control causes a postback....
3
by: serge calderara | last post by:
Dear all, I am trying to understand postack event ordering. for that I have a web form with a text box, listbox and button server controls. Then I add a response.write in eaxh control event...
23
by: roman | last post by:
Hi, I would like to have two actions for one event. But I want the second action to trigger when the first one action completes. Is it possible to do this in javascript? I'm using the onclick...
1
by: cmay | last post by:
Can someone advise on this issue? We are seeing a page where, on the first load the base page (the class our page inherits from) fires it's PageLoad event first, followed by our Page's PageLoad....
7
hodgeman
by: hodgeman | last post by:
Hello thescripts forums users... I've found a lot of answers to problems I've had in the past from this forum, and this is the first mySQL query issue I haven't been able to find an answer from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.