473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PostBack Concept

I want to know if the PostBack concept applies to HTML web-based forms,
regardless of what programming technologies we use: For example, ASP,
ASP.NET, Java, CGI, etc...

PostBack means to send the HTML form to the web server? Since most of the
time I heard this term in ASP.NET circle, thats why I raise this question.

Please advise. Thanks!
Jul 19 '05 #1
3 11088
In ASP.Net the whole idea is to treat a form like you would a windows form.
That is, the same page handles all of the events. Thus, in ASP.Net the
forms are set to POST to themselves and a built in property is available
called PostBack.

Before .Net I never even considered using a postback. All of my forms would
consist of Form1 where the user enters the information, then Page2 where the
information was processed and the user was given a response.

Since .Net I've realized the advantages of that approach and most of my
forms postback to the same page.

So is it a .Net only thing. Not at all. As long as the form's Action
property is set to the same page, it's what I'd call a postback. Most of my
forms look like this......

<%
if request.form("postback")="true" then
'note that true is in quotes because it's a string not a boolean
Call processTheForm
end if
%>

<form method=post action="thisSamePage.asp">
<input type=hidden name=postback value="true">
etc...
</form>

"Matthew Louden" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I want to know if the PostBack concept applies to HTML web-based forms,
regardless of what programming technologies we use: For example, ASP,
ASP.NET, Java, CGI, etc...

PostBack means to send the HTML form to the web server? Since most of the
time I heard this term in ASP.NET circle, thats why I raise this question.

Please advise. Thanks!

Jul 19 '05 #2
"Matthew Louden" wrote ...
PostBack means to send the HTML form to the web server? Since most of the
time I heard this term in ASP.NET circle, thats why I raise this question.


Definately in this instance I think more asp.net - there is a IsPostBack
feature enabling you to check whether or not this is the first time or not
that the form has been loaded.

Of course for normal ASP you'll find it mean more like "and now I want to
post this form back" - ie, if perhaps mandatory fields were filled in
incorrect and you were letting the server validate these or something...

This is my belief anywho...

Regards

Rob
Jul 19 '05 #3
Yes, I too have been doing this for years as if the user supplies an invalid
value you don't need to redirect as you can remember all the fields values.

<input type="text" name="Email"
value="<%=Server.HTMLEncode(Request.Form("Email")) %>">
"TomB" <sh*****@hotmailXXX.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
In ASP.Net the whole idea is to treat a form like you would a windows form. That is, the same page handles all of the events. Thus, in ASP.Net the
forms are set to POST to themselves and a built in property is available
called PostBack.

Before .Net I never even considered using a postback. All of my forms would consist of Form1 where the user enters the information, then Page2 where the information was processed and the user was given a response.

Since .Net I've realized the advantages of that approach and most of my
forms postback to the same page.

So is it a .Net only thing. Not at all. As long as the form's Action
property is set to the same page, it's what I'd call a postback. Most of my forms look like this......

<%
if request.form("postback")="true" then
'note that true is in quotes because it's a string not a boolean Call processTheForm
end if
%>

<form method=post action="thisSamePage.asp">
<input type=hidden name=postback value="true">
etc...
</form>

"Matthew Louden" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I want to know if the PostBack concept applies to HTML web-based forms,
regardless of what programming technologies we use: For example, ASP,
ASP.NET, Java, CGI, etc...

PostBack means to send the HTML form to the web server? Since most of the time I heard this term in ASP.NET circle, thats why I raise this question.
Please advise. Thanks!


Jul 19 '05 #4

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

Similar topics

2
by: Matthew Louden | last post by:
I want to know if the PostBack concept applies to HTML web-based forms, regardless of what programming technologies we use: For example, ASP, ASP.NET, Java, CGI, etc... PostBack means to send...
2
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...
8
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
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
4
by: kpg | last post by:
After an autopostback event the control that gets focus next is not the one defined in the taborder, but the first control. This makes sense becuase the page is reloaded, but of course this is...
11
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.