473,378 Members | 1,492 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,378 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 2255
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.