473,509 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is postback?

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
it will invoke "process.asp" is the above code.

In ASP.NET, if the web control has set AutoPostBack property to True, that
means when there is any events on the web control, it will invoke
"process.asp", just like the user click the submit button.

Please advise. Thanks!

Jul 19 '05 #1
5 46003
it just means what you're essentially doing when submitting the form is
coming back to the same script that displays the form, which then
carries out actions based on what's been submitted, whether that's
adding to a database, processing something or just displaying a
validation error.

it's got a more specific meaning in ASP.NET but you seem to have that
handled...


________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2
On Wed, 29 Oct 2003 22:22:00 -0800, "Matt" <ma*******@hotmail.com>
wrote:
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
it will invoke "process.asp" is the above code.

In ASP.NET, if the web control has set AutoPostBack property to True, that
means when there is any events on the web control, it will invoke
"process.asp", just like the user click the submit button.


Basically the same. Postback just means that when the form is
submitted, the same script that created the form does the processing.
So in your case, the file would be process.asp, and when submitted,
the form would pass the values to process.asp, invoking itself again.

Jeff
Jul 19 '05 #3
In addition to the other posts, be aware that a postback is not the same
thing as a refresh. In other words, a postback does not just represent the
second (or subsequent) time the page is being loaded. A postback represents
just what its name says: a post-back of data to the server.

Usually, a submit button causes a postback, but as you've pointed out, many
controls have an "AutoPostBack" property which, when set to true, make using
that particular control act as if it was a submit button.
"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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 it will invoke "process.asp" is the above code.

In ASP.NET, if the web control has set AutoPostBack property to True, that
means when there is any events on the web control, it will invoke
"process.asp", just like the user click the submit button.

Please advise. Thanks!


Jul 19 '05 #4
Let's use the example and assume this is in process.asp
Here's a typical html form:
<form action="process.asp" method="post">
'GUI code
</form>
When we click the submit button, the form will send the data in web control
to the server, and then call "process.asp." Since the form is in
process.asp, and "process.asp" is the form to call, so it makes us think the
page is being loaded again, or have the same effect as refresh the page. The
smart navigation property is to prevent the page from blinking?

Please advise! Thanks!

"Scott M." <s-***@badspamsnet.net> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
In addition to the other posts, be aware that a postback is not the same
thing as a refresh. In other words, a postback does not just represent the second (or subsequent) time the page is being loaded. A postback represents just what its name says: a post-back of data to the server.

Usually, a submit button causes a postback, but as you've pointed out, many controls have an "AutoPostBack" property which, when set to true, make using that particular control act as if it was a submit button.
"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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
it will invoke "process.asp" is the above code.

In ASP.NET, if the web control has set AutoPostBack property to True,

that means when there is any events on the web control, it will invoke
"process.asp", just like the user click the submit button.

Please advise. Thanks!



Jul 19 '05 #5
"Matthew Louden" <jr********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl...
Let's use the example and assume this is in process.asp
Here's a typical html form:
<form action="process.asp" method="post">
Actually, the line would look like this:

<form method="post" runat="server">

Since, ASP.NET forms are server-side forms and server-side forms MUST submit
to themselves (even if you put Action="someOtherPage.aspx", it will
disregard that and submit to itself).
'GUI code
</form>
When we click the submit button, the form will send the data in web control to the server, and then call "process.asp." Since the form is in
process.asp, and "process.asp" is the form to call, so it makes us think the page is being loaded again, or have the same effect as refresh the page.
The page is being loaded again, but this time it has form data to extract
and process with. Under this circumstance, this page load is called a
"PostBack". A page refresh does not always cause the page to be rebuilt as
a "PostBack".
The smart navigation property is to prevent the page from blinking?
SmartNavigation causes the page to reload to the scrolled position it was in
during the last page render.

Please advise! Thanks!

"Scott M." <s-***@badspamsnet.net> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
In addition to the other posts, be aware that a postback is not the same
thing as a refresh. In other words, a postback does not just represent

the
second (or subsequent) time the page is being loaded. A postback

represents
just what its name says: a post-back of data to the server.

Usually, a submit button causes a postback, but as you've pointed out,

many
controls have an "AutoPostBack" property which, when set to true, make

using
that particular control act as if it was a submit button.
"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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
it will invoke "process.asp" is the above code.

In ASP.NET, if the web control has set AutoPostBack property to True,

that means when there is any events on the web control, it will invoke
"process.asp", just like the user click the submit button.

Please advise. Thanks!




Jul 19 '05 #6

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

Similar topics

6
3792
by: V | last post by:
I have found that when I have a composite control that uses the CreateChildControls method, on a regular page load, Page_Load executes before CreateChildControls, but on a postback it is the...
4
4257
by: Jiho Han | last post by:
What is the best way to check whether the page is simply a postback or the form has been submit with the intention of doing something? In the olden days, I used to check for a form field name...
10
4478
by: Krista Lemieux | last post by:
I'm new to ASP.NET and I'm not use to the way things are handled with this technology. I've been told that when I have a control, I should only bind the data to it once, and not on each post back...
2
4313
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
21
24406
by: Martin Eyles | last post by:
I am trying to get javascript to cause a page to post back. I have tried calling _doPostBack from my script, but generates an error "object expected". I think this is because the page's script...
8
11137
by: walesboy | last post by:
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which...
4
1604
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,...
11
14789
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
7
3350
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
2
3899
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
7233
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
7342
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,...
0
7505
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
5650
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,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
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
3215
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
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
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.