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! 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!
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
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!
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!
"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!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
| |
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,...
|
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...
|
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: 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...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |