473,651 Members | 2,512 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.as p" 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.as p", just like the user click the submit button.

Please advise. Thanks!

Jul 19 '05 #1
5 46009
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*******@hotm ail.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.as p" 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 "AutoPostBa ck" property which, when set to true, make using
that particular control act as if it was a submit button.
"Matt" <ma*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.as p" 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.as p", 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.as p." Since the form is in
process.asp, and "process.as p" 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******** ******@TK2MSFTN GP12.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 "AutoPostBa ck" property which, when set to true, make using that particular control act as if it was a submit button.
"Matt" <ma*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.as p" 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.as p", just like the user click the submit button.

Please advise. Thanks!



Jul 19 '05 #5
"Matthew Louden" <jr********@hot mail.com> wrote in message
news:O1******** ******@TK2MSFTN GP11.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="someOth erPage.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.as p." Since the form is in
process.asp, and "process.as p" 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******** ******@TK2MSFTN GP12.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 "AutoPostBa ck" property which, when set to true, make

using
that particular control act as if it was a submit button.
"Matt" <ma*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.as p" 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.as p", 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
3809
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 reverse. This is causing logic problems and it really bothers me that this sequence of events fires inconsistently. Can anyone tell me why this happens and how we might get around it?
4
4262
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 used for the submit button: <input type="submit" name="saverecord" value="push me to save"> Then I'd retrieve it using something like:
10
4498
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 (basically have the data binding done in the If NOT IsPostBack Then statement). How come? How does this information get preserved? Which raises another question. Becuase I want to get away from the spaghetti code approach, I would like to create...
2
4331
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 displaying the contents of the data source, whilst another control updates the datasource via a command buttons implementation of 'Click', an event raised in the 'Handle Postback Events' stage of the control execution life cycle (via the...
21
24434
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 doesn't contain the method _doPostBack, which needs to be added by asp.net. How can I make asp.net add this script? Thanks, ME --
8
11151
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 has it's own event and autopostback=true) before clicking submit then it fires the text box event but never fires the btnSubmit event. (I follow it in the trace). Surely both event handlers should be fired? Any hints on identifying what I
4
1622
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
11
14807
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 processed by the web server. I am still struggling to understand this postback logic, and hope that some kind gurus out there could help me clarify the confusion I have.
7
3353
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 is postback occurring? Does that mean a round trip to the server occurred? I keep reading javascript articles and tutorials that say "improve the client-side experience to be more responsive and quicker", but the articles
2
3910
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 well, so at times it is tempting just to port parts of it over mostly as-is. In fact, one MSDN article I read suggested using straight HTML wherever possible to make the app more efficient and less resource demanding. On one page there are 2...
0
8275
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,...
0
8802
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, 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...
0
8697
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 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...
1
8465
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,...
0
8579
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 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...
0
4144
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...
1
2699
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 we have to send another system
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.