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 2 2282
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.16... "Omar E Contreras" <om************ @cantv.net> wrote in news:uR******** ******@TK2MSFTN GP11.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="documen t.theform.submi t()"> <form name="theform" id="theform" action="<%=dest page%>" method="post"> <input type="hidden" name="VarA" value="<%=VarA% >"> <input type="hidden" name="other" value="<%=Reque st.Form["other"]%>"> </form> </body> </html>
Mark
"Omar E Contreras" <om************ @cantv.net> wrote in
news:O9******** ******@tk2msftn gp13.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works.
|
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 :)
|
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) now renders "Page
not Found" when launched on the new Windows 2003 server (ws-server1).
The form is designed to use the write.asp program to write...
|
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" action="test.aspx" runat="server">
<input type="hidden" id="hiddenTest" value="hello, world">
<input type="submit" id="btnSubmit" value="submit">
|
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 others, lets say VarA = "Fun"
Step 3:
| |
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, the packet that is sent out is an HTTP GET (I'm
watching the outgoing packet via Ethereal). The code I'm using is identical
to that above, only...
|
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 lean towards the all lower-case
model, simply because it reads a little easier when deployed
with other XHTML semaphorings.
--
|
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>
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |