473,320 Members | 1,881 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,320 software developers and data experts.

sending data between pages

How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>

Thanks.

Jul 19 '05 #1
3 1721
you might check the referer.
Request.ServerVariables("HTTP_REFERER")

"bender online.no>" <laasunde@<remove> wrote in message
news:#0**************@TK2MSFTNGP09.phx.gbl...
How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
file://code...
<input type="submit" value="Ok">
</form>

Thanks.

Jul 19 '05 #2
> How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>


Something like this might work (if you give your submit input tag a
name=submit)...

if request.form("submit").count > 0 then
'it was submitted via a form post
else
'it was not
end if
Jul 19 '05 #3
Thank you :)

"Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
news:uE**************@TK2MSFTNGP12.phx.gbl...
How can I through asp figure out if a page is opend through a regular link or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>


Something like this might work (if you give your submit input tag a
name=submit)...

if request.form("submit").count > 0 then
'it was submitted via a form post
else
'it was not
end if

Jul 19 '05 #4

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

Similar topics

16
by: Jochen Daum | last post by:
Hi! I have a function in a lot of pages, which redirects to a new page, if a form has been submitted: if (!(defined("DEBUG_INSERT") && DEBUG_INSERT) && !(defined("DEBUG_UPDATE") &&...
1
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
5
by: vanisathish | last post by:
Hi All, I need to constantly update some values to the User Interface. In order to do the updation efficiently, i am planning to run some script in the server side that constantly keeps sending...
5
by: Naveen Mukkelli | last post by:
Hi, I'm writing a server applicaiton using C# and .NET Framework. This server sends out time to all the clients. The clients are expected to be written in various platforms for example, Delphi,...
4
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
7
by: tshad | last post by:
I have been sending messages to myself from work that worked before and now all of my message only seem to be sending part of my messages. I get the first part of the message and then get...
1
by: Ugur Ekinci | last post by:
Hi all, I have two aspx pages, first one has a listbox and a button that opens popup aspx page. Popup page has listbox control , so what i want to do is when I close the popup , the datas in...
9
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
3
by: phpmike | last post by:
I have a simple form and would like the data sent to two different pages. Actually I only need the data sent to one page and the user sent to another page. For example user is at page1.php (which...
5
by: hurricane_number_one | last post by:
I am creating a simple server application, that will listen for incoming mouse coordinates and then move the mouse accordingly. So basically it's like a very simple VNC server without and screen...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.