Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:19 AM
Matt
Guest
 
Posts: n/a
Default 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!





  #2  
Old July 19th, 2005, 09:19 AM
Atrax
Guest
 
Posts: n/a
Default Re: what is postback?

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!
  #3  
Old July 19th, 2005, 09:20 AM
Jeff Cochran
Guest
 
Posts: n/a
Default Re: what is postback?

On Wed, 29 Oct 2003 22:22:00 -0800, "Matt" <mattloude@hotmail.com>
wrote:
[color=blue]
>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.[/color]

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
  #4  
Old July 19th, 2005, 09:20 AM
Scott M.
Guest
 
Posts: n/a
Default Re: what is postback?

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" <mattloude@hotmail.com> wrote in message
news:%23CUEj4qnDHA.1948@TK2MSFTNGP12.phx.gbl...[color=blue]
> I always see the term "postback" from ASP book, but I am not sure if I[/color]
fully[color=blue]
> understand the meaning. Here's my understanding so far, please correct me[/color]
if[color=blue]
> 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[/color]
means[color=blue]
> 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!
>
>
>
>
>[/color]


  #5  
Old July 19th, 2005, 09:22 AM
Matthew Louden
Guest
 
Posts: n/a
Default Re: what is postback?

Let's use the example and assume this is in process.asp
[color=blue][color=green]
> > Here's a typical html form:
> > <form action="process.asp" method="post">
> > 'GUI code
> > </form>[/color][/color]

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-mar@badspamsnet.net> wrote in message
news:eIX5W6ynDHA.2772@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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[/color]
the[color=blue]
> second (or subsequent) time the page is being loaded. A postback[/color]
represents[color=blue]
> 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,[/color]
many[color=blue]
> controls have an "AutoPostBack" property which, when set to true, make[/color]
using[color=blue]
> that particular control act as if it was a submit button.
>
>
> "Matt" <mattloude@hotmail.com> wrote in message
> news:%23CUEj4qnDHA.1948@TK2MSFTNGP12.phx.gbl...[color=green]
> > I always see the term "postback" from ASP book, but I am not sure if I[/color]
> fully[color=green]
> > understand the meaning. Here's my understanding so far, please correct[/color][/color]
me[color=blue]
> if[color=green]
> > 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[/color]
> means[color=green]
> > it will invoke "process.asp" is the above code.
> >
> > In ASP.NET, if the web control has set AutoPostBack property to True,[/color][/color]
that[color=blue][color=green]
> > 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!
> >
> >
> >
> >
> >[/color]
>
>[/color]


  #6  
Old July 19th, 2005, 09:22 AM
Scott M.
Guest
 
Posts: n/a
Default Re: what is postback?

"Matthew Louden" <jrefactors@hotmail.com> wrote in message
news:O1dO7bAoDHA.2676@TK2MSFTNGP11.phx.gbl...[color=blue]
> Let's use the example and assume this is in process.asp
>[color=green][color=darkred]
> > > Here's a typical html form:
> > > <form action="process.asp" method="post">[/color][/color][/color]

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).
[color=blue][color=green][color=darkred]
> > > 'GUI code
> > > </form>[/color][/color]
>
> When we click the submit button, the form will send the data in web[/color]
control[color=blue]
> 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[/color]
the[color=blue]
> page is being loaded again, or have the same effect as refresh the page.[/color]

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".
[color=blue]
> The smart navigation property is to prevent the page from blinking?[/color]

SmartNavigation causes the page to reload to the scrolled position it was in
during the last page render.
[color=blue]
>
> Please advise! Thanks!
>
> "Scott M." <s-mar@badspamsnet.net> wrote in message
> news:eIX5W6ynDHA.2772@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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[/color]
> the[color=green]
> > second (or subsequent) time the page is being loaded. A postback[/color]
> represents[color=green]
> > 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,[/color]
> many[color=green]
> > controls have an "AutoPostBack" property which, when set to true, make[/color]
> using[color=green]
> > that particular control act as if it was a submit button.
> >
> >
> > "Matt" <mattloude@hotmail.com> wrote in message
> > news:%23CUEj4qnDHA.1948@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > I always see the term "postback" from ASP book, but I am not sure if I[/color]
> > fully[color=darkred]
> > > understand the meaning. Here's my understanding so far, please correct[/color][/color]
> me[color=green]
> > if[color=darkred]
> > > 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[/color]
> > means[color=darkred]
> > > it will invoke "process.asp" is the above code.
> > >
> > > In ASP.NET, if the web control has set AutoPostBack property to True,[/color][/color]
> that[color=green][color=darkred]
> > > 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!
> > >
> > >
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles