For debugging purposes, I have the following in Page_load:
Response.Write( "postback is " + IsPostBack.ToSt ring + Now.ToLongTimeS tring)
i
When I view my page in IE, if I hit F5 (refresh), it tells me (as expected)
that IsPostback is False.
If I then hit a submit button on the page it tells me (as expected) that
IsPostBack is true.
However, if I then hit F5 again, it tells me that IsPostBack is TRUE! How
come? (I know that its going back to the server (on not client cache)
because the displayed time changes).
Thanks,
Paul. 4 3129
F5 repeats the last HTTP request.
If it was a GET it issues a GET, if it was a POST it issues a POST
(PostBack)...
Patrice
--
"Paul W" <qq*@qqq.com> a écrit dans le message de
news:uc******** *******@TK2MSFT NGP11.phx.gbl.. . For debugging purposes, I have the following in Page_load: Response.Write( "postback is " + IsPostBack.ToSt ring +
Now.ToLongTimeS tring) i When I view my page in IE, if I hit F5 (refresh), it tells me (as
expected) that IsPostback is False.
If I then hit a submit button on the page it tells me (as expected) that IsPostBack is true.
However, if I then hit F5 again, it tells me that IsPostBack is TRUE! How come? (I know that its going back to the server (on not client cache) because the displayed time changes).
Thanks,
Paul.
On Fri, 1 Oct 2004 10:04:22 -0400, "Paul W" <qq*@qqq.com> wrote: For debugging purposes, I have the following in Page_load: Response.Write ("postback is " + IsPostBack.ToSt ring + Now.ToLongTimeS tring) i When I view my page in IE, if I hit F5 (refresh), it tells me (as expected) that IsPostback is False.
If I then hit a submit button on the page it tells me (as expected) that IsPostBack is true.
However, if I then hit F5 again, it tells me that IsPostBack is TRUE! How come? (I know that its going back to the server (on not client cache) because the displayed time changes).
Thanks,
Paul.
Because you are technically posting the form again with that refresh.
Does the browser not ask you if you want to resubmit the data?
--
Thanks,
Chris Simmons ne************* **@netchris.com
Yes, the browser DOES ask me if I want to resubmit the data. Does this mean
that it SHOULD be received as a PostBack or should NOT.
Thanks,
Paul.
"Chris Simmons" <ne************ ***@netchris.co m> wrote in message
news:ch******** *************** *********@4ax.c om... On Fri, 1 Oct 2004 10:04:22 -0400, "Paul W" <qq*@qqq.com> wrote:
For debugging purposes, I have the following in Page_load: Response.Writ e("postback is " + IsPostBack.ToSt ring + Now.ToLongTim eString) i When I view my page in IE, if I hit F5 (refresh), it tells me (as expected) that IsPostback is False.
If I then hit a submit button on the page it tells me (as expected) that IsPostBack is true.
However, if I then hit F5 again, it tells me that IsPostBack is TRUE! How come? (I know that its going back to the server (on not client cache) because the displayed time changes).
Thanks,
Paul.
Because you are technically posting the form again with that refresh. Does the browser not ask you if you want to resubmit the data?
-- Thanks, Chris Simmons ne************* **@netchris.com
On Fri, 1 Oct 2004 14:23:54 -0400, "Paul W" <qq*@qqq.com> wrote: Yes, the browser DOES ask me if I want to resubmit the data. Does this mean that it SHOULD be received as a PostBack or should NOT.
Thanks,
Paul.
"Chris Simmons" <ne************ ***@netchris.co m> wrote in message news:ch******* *************** **********@4ax. com... On Fri, 1 Oct 2004 10:04:22 -0400, "Paul W" <qq*@qqq.com> wrote:
For debugging purposes, I have the following in Page_load: Response.Wri te("postback is " + IsPostBack.ToSt ring + Now.ToLongTi meString) i When I view my page in IE, if I hit F5 (refresh), it tells me (as expected) that IsPostback is False.
If I then hit a submit button on the page it tells me (as expected) that IsPostBack is true.
However, if I then hit F5 again, it tells me that IsPostBack is TRUE! How come? (I know that its going back to the server (on not client cache) because the displayed time changes).
Thanks,
Paul.
Because you are technically posting the form again with that refresh. Does the browser not ask you if you want to resubmit the data?
-- Thanks, Chris Simmons ne************* **@netchris.com
Paul, sorry for the delay here. That request from the browser is it
asking you if you want to re-post the data. So yes, you are reposting
("posting back") and the behavior you are seeing is to be expected.
--
Thanks,
Chris Simmons ne************* **@netchris.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matt |
last post by:
I always see the term "postback" from ASP book, but I am not sure if I fully
understand the meaning. Here's my understanding so far, please correct me if
any mistakes.
Here's a typical html form:
<form action="process.asp" method="post">
'GUI code
</form>
"postback" action happens when the user click the submit button, that means
|
by: Earl Teigrob |
last post by:
I have run into a situation where I need to run the !IsPostBack code under
one circumstance, even if it is a postback. Something that may complicate
matters more is that this is a double postback event.
I have a filemanager type application that allows me to dynamically create a
new folder on the web server. After the new folder is created, I need to
reread the directory and display all the current folders in this directory
to the user....
|
by: tasmisr |
last post by:
This is an old problem,, but I never had it so bad like this before,,
the events are refiring when clicking the Browser refresh button.
In the Submit button in my webform, I capture the server side click
event and I update session information to track the visibilty of some
panels in a wizard type navigation ("Next >>" and "<< Back" buttons)..
but the refresh button makes another event firing and takes the whole
thing to a Choes..
...
|
by: Tim::.. |
last post by:
Can someone please tell my why I get the following problem when I type the
following piece of code!
How do I get around this???
The idea is that when a user clicks a button on a form it causes a postback
to occur which in turn triggers a sub in a user control...
Error:
Argument not specified for parameter e of Public Sub UploadDate(Sender As
|
by: DEWright_CA |
last post by:
I need to be able to from C# launch a postback.
I have a command button that launches a function, I also have a javascript
function that then keeps you from firing any other objects on the page, but
when the function finishes the page needs to postback, but my function is in
codebehind.
What command do I need to call to say in my finnaly to postback my page???
--
D @ premierdata
| |
by: Simon Strandgaard |
last post by:
Hi group,
my setup:
I have a GridView that extracts data from my table (a SqlDataSource).
For each row, I have an 'edit' button and a 'delete' button.
The 'edit' button opens a popup, through which one can insert and edit
the table.
The 'delete' button deletes the row.
|
by: Dan |
last post by:
Hi,
i'm not sure to understand the difference between refreshing the pagina by
clicking on 'refresh' in the browser and a postback.
What i think it is:
Suppose a page with a form containing a textbox and a dropdowlist: and a
button to start something n code-behind:
a refresh doesn't send any value back to the server but with a postback, the
values are sent?
But then, which role does Viewstate play in the postback proces?
|
by: Matthew Wells |
last post by:
Hello.
I'm trying to use an asp - not html - button without having a postback or a
screen refresh. I've tried turning off "CausesValidation" and
"UseSubmitBehavior" and I still get a screen refresh - which makes me think
I'm doing a postback. I've also tried "return false" in both the onclick
and OnClientClick events. No Luch. Can I use the onclick or OnClientClick
(or something else) to fire a javascritpt function and then stop?
...
|
by: Peter |
last post by:
ASP.NET
I have an application which use ASP.NET Autocomplete extender which works
great. But I have a question how to update all the fields on the screen
using Ajax.
Users starts typing in a text field which causes the Autocomplete extender
to display 10 like items, after the users selects an item (which is a key in
the database) I want the application to go to the database retrieve a record
and populate the fields.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |