473,473 Members | 2,319 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Confirming Postback in classic ASP

Hopefully just a couple of quick quick questions/responses, but its not
something I've generally had trouble with in the past. Unfortunately, I need
answers ASAP if anyone is available to help.

a) Having seen .NET's IsPostBack which solves many problems, I looked at the
ServerVariables etc to see what I could check to confirm PostBack in classic
ASP. I initially considered using HTTP_REFERER to check it was coming from
my form, and then I noticed the Server-variable REQUEST_METHOD which tells
me 'POST'. Is this a safe combination to garantee my form is receiving a
PostBack from itself?

b) Post-data Pass-thru. I have Page1, Page2, Page 3. The USer enters some
data in Page1, submits to Page2 which validates the data, and asks for extra
info. When submitting to 3, I want the data from both Page1 and Page2 to be
Posted to Page3. I know I could have a hidden form in Page2 and the
Response.Write set values into the hidden fields from Page!, but that would
leave Page1's details available to anyone who 'View Source'd....Is there
anyway to 'pass-thru' the Posted Data?

There was a third Question, but I'll put that into another post,

Yours,

Ann-Marie Ratcliffe
ar********@archimagic.net
Jul 19 '05 #1
1 9561
Be warned that some utilities like Norton Internet Security mask the
HTTP_REFERER by default. The most reliable method would be to encode
something in a hidden field, and check for the value of it.

Matthew

"A Ratcliffe" <ar********@archimagic.net> wrote in message news:<Os**************@tk2msftngp13.phx.gbl>...
Hopefully just a couple of quick quick questions/responses, but its not
something I've generally had trouble with in the past. Unfortunately, I need
answers ASAP if anyone is available to help.

a) Having seen .NET's IsPostBack which solves many problems, I looked at the
ServerVariables etc to see what I could check to confirm PostBack in classic
ASP. I initially considered using HTTP_REFERER to check it was coming from
my form, and then I noticed the Server-variable REQUEST_METHOD which tells
me 'POST'. Is this a safe combination to garantee my form is receiving a
PostBack from itself?

b) Post-data Pass-thru. I have Page1, Page2, Page 3. The USer enters some
data in Page1, submits to Page2 which validates the data, and asks for extra
info. When submitting to 3, I want the data from both Page1 and Page2 to be
Posted to Page3. I know I could have a hidden form in Page2 and the
Response.Write set values into the hidden fields from Page!, but that would
leave Page1's details available to anyone who 'View Source'd....Is there
anyway to 'pass-thru' the Posted Data?

There was a third Question, but I'll put that into another post,

Yours,

Ann-Marie Ratcliffe
ar********@archimagic.net

Jul 19 '05 #2

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

Similar topics

47
by: Pmb | last post by:
Can someone suggest a good editor? I'm using WinEdit right now and I'm not that happy with it (I seem to have an old edition and I'm not sure if it was made by the same organization at...
2
by: collie | last post by:
Hi, I have 2 listboxes. The first gets populated from the db as soon as the page loads. The second listbox get populated based on the user's selection from the first listbox. However,...
3
by: Alan Silver | last post by:
Hello, I have an app where the user needs to fill in details about an event, including the date and time of the event. I want a clean way to allow them to pick the date and time. In the old days...
0
by: Larry Brown | last post by:
Hi, I'm working on an ASP.NET 2 application, with framework 2.0 beta. I have a classic form, with a listbox. This field is in autopostback=true. When I change the selected value, the page is...
4
by: UJ | last post by:
I've got a page where users can make changes (enable and disable some checkboxes.) I need to have it so that if they have made changes and go away from the page, they will get prompted if they want...
3
by: Darrel | last post by:
I have a page that lists a bunch of items. You can check each item and hit ADD to add these items to a record in the DB. This page has a dropDownList. When you select an item from the list, I...
4
by: Gregory Gadow | last post by:
If there is a more appropriate forum, please let me know and I will post there. Our field reps can go on to our website and select from several sets of data to create the address we then provide...
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...
1
by: =?Utf-8?B?bXIgcGVhbnV0?= | last post by:
Say I have a textbox (autopostback=true) and a button. I enter a new value in the textbox then - without clicking anywhere else first - I click the button. The box's text isn't changed prior to...
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
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...
0
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
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...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.