473,385 Members | 2,015 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,385 software developers and data experts.

Little "Post" Issue

Hi guys,
Let me explain what I want to do in just 3 steps:

Step 1:
An HTML page that has a form which passes some data to an aspx page

Step 2:
The aspx page take this values and add some others, lets say VarA = "Fun"

Step 3:
my aspx page send another POST with the first values and the value of VarA
(which is "Emulating" a hidden value OR text input) to a third page that
accepts ONLY Posted values NO QuerryStrings.

The question is: How do I make a Post from code?, I mean, how can I emulate
a HTML form from the script in order to pass some variables to a third
page?.
Thanks in advance.

Omar
Jul 19 '05 #1
2 2256
Thanks but this is NOT what I was looking for.
I want to emulate to submit of data from ASP code not from JavaScript Code.
I don't want to display an page, I just want to execute an ASP page that
just POST data to another page with a Subroutine or a Function, Is this
possible?.
Thanks anyway

Omar

"Mark" <mark@--somewhere--.com> escribió en el mensaje
news:Xn******************************@207.46.248.1 6...
"Omar E Contreras" <om************@cantv.net> wrote in
news:uR**************@TK2MSFTNGP11.phx.gbl:
Hi guys,
Let me explain what I want to do in just 3 steps:

Step 1:
An HTML page that has a form which passes some data to an aspx page

Step 2:
The aspx page take this values and add some others, lets say VarA =
"Fun"

Step 3:
my aspx page send another POST with the first values and the value of
VarA (which is "Emulating" a hidden value OR text input) to a third
page that accepts ONLY Posted values NO QuerryStrings.

The question is: How do I make a Post from code?, I mean, how can I
emulate a HTML form from the script in order to pass some variables to
a third page?.
Thanks in advance.

Omar


Write out a form with the action set to the destination page and the
method set to post. In the onload, do a form.submit().

e.x.

<html>
<body onload="document.theform.submit()">
<form name="theform" id="theform" action="<%=destpage%>" method="post">
<input type="hidden" name="VarA" value="<%=VarA%>">
<input type="hidden" name="other" value="<%=Request.Form["other"]%>">
</form>
</body>
</html>
Mark

Jul 19 '05 #2
"Omar E Contreras" <om************@cantv.net> wrote in
news:O9**************@tk2msftngp13.phx.gbl:
Thanks but this is NOT what I was looking for.
I want to emulate to submit of data from ASP code not from JavaScript
Code. I don't want to display an page, I just want to execute an ASP
page that just POST data to another page with a Subroutine or a
Function, Is this possible?.
Thanks anyway

Omar

In that case, check out the HttpWebRequest and HttpWebResponse classes.
They'll do exactly what you are looking for.

Mark
Jul 19 '05 #3

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

Similar topics

7
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open...
6
by: Eitan | last post by:
Hello, I would like to know about the methods : post and get of ASP. What is the difference between them. Need some samples, and explanation, please. Thanks :)
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
5
by: Jeff | last post by:
Visual Studio 2003 DotNet framework 1.1 Windows 2000 Pro I create two pages in an Asp.net application, one is html page with a form in it: .... <form id="testForm" method="post"...
4
by: Omar E Contreras | last post by:
Hi guys, Let me explain what I want to do in just 3 steps: Step 1: An HTML page that has a form which passes some data to an aspx page Step 2: The aspx page take this values and add some...
2
by: ReGex | last post by:
I have been working on a little project in C# to log into a website (using code inspired/riipped from http://www.codeproject.com/cs/internet/bloglivejournal.asp) but when I request the response,...
1
by: Jim Carlock | last post by:
Let's not argue about semantics. Let's talk about semasiology. Do specifications exist for using mixed case, upper case, lower case for the contents of the method employed? My own preferences...
25
by: william.hooper | last post by:
here is my form: <html> <head></head> <body> <FORM ACTION="code.php" method="post"> <INPUT TYPE=SUBMIT NAME="arty.jpg" VALUE="Action"> </FORM>
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.