In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
POST data (i.e., formatted like a form. The form data is changed
dynamically by the C# page.
Can anyone point me to an example?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
-- 5 10023
Question moved to another newsgroup.
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
"Thom Little" <th**@tlanet.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
POST data (i.e., formatted like a form. The form data is changed
dynamically by the C# page.
Can anyone point me to an example?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
Thank you for the lead ...
To pass a string shouldn't you be able to ...
Response.ClearHeader( );
Response.AddHeader( "x", "a=alpha&b=beta" );
Response.Redirect( strUrl );
.... while you specify the correct header ("x") for any form without worrying
about the name?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
"Ciaran O''Donnell" <Ci************@discussions.microsoft.comwrote in
message news:57**********************************@microsof t.com...
>I spoke about this on my blog, you need to send down a response to the client
with the form on it, filled in, and use javascript to post that back to
the
other page. The code is fairly simple, just javascript in the page.
window.document.getElementById('formname').submit( );
Just enure the action is set to the other page. Otherwise that can be
changed with js too.
--
Ciaran O''Donnell http://wannabedeveloper.space.live.com
"Thom Little" wrote:
>In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include POST data (i.e., formatted like a form. The form data is changed dynamically by the C# page.
Can anyone point me to an example?
-- -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. --
I find your information very helpful and I appreciate you taking the time to
share it with me.
I tried to find the article on your Blog and could not find it. Can you
point me in the right direction?
Thanks.
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
"Ciaran O''Donnell" <Ci************@discussions.microsoft.comwrote in
message news:61**********************************@microsof t.com...
No, that will send a header down to the client. A response redirect is a
normal response to the client like any other except:
The status is set to '304 - Object Moved'
a location header is included to show the url to go to.
a small page is sent to broswer with a link incase it doesnt support 304.
Then the browser reads this and starts a whole new request to the new url,
passing the old url as the referrer header.
There is now way for the redirector to affect this get.
--
Ciaran O''Donnell http://wannabedeveloper.space.live.com
"Thom Little" wrote:
>Thank you for the lead ...
To pass a string shouldn't you be able to ...
Response.ClearHeader( ); Response.AddHeader( "x", "a=alpha&b=beta" ); Response.Redirect( strUrl );
.... while you specify the correct header ("x") for any form without worrying about the name?
-- -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. --
"Ciaran O''Donnell" <Ci************@discussions.microsoft.comwrote in message news:57**********************************@microsof t.com...
>I spoke about this on my blog, you need to send down a response to the client
with the form on it, filled in, and use javascript to post that back to
the
other page. The code is fairly simple, just javascript in the page.
window.document.getElementById('formname').submit( );
Just enure the action is set to the other page. Otherwise that can be
changed with js too.
--
Ciaran O''Donnell http://wannabedeveloper.space.live.com
"Thom Little" wrote:
In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include POST data (i.e., formatted like a form. The form data is changed dynamically by the C# page.
Can anyone point me to an example?
-- -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. --
Hi,
Wouldn't a Server.Transfer(...) do the trick?
I hope it helps
ThunderMusic
"Thom Little" <th**@tlanet.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
POST data (i.e., formatted like a form. The form data is changed
dynamically by the C# page.
Can anyone point me to an example?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
Unfortunately Server.Transfer( ) is restricted to transfer between webspcaes
on the same server.
In my case some of the web are on other servers.
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:e1****************@TK2MSFTNGP04.phx.gbl...
Hi,
Wouldn't a Server.Transfer(...) do the trick?
I hope it helps
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bob Garbados |
last post by:
forgive my ignorance, as I'm new to php coming from a ms background...
If I create a page named redirect.php and it's only content is:
<?php
header("Location: http://www.google.com");
?>...
|
by: Victor |
last post by:
I need to redirect to another web page, but that redirect will include the
submission of form data. So, unlike ServerXMLHTTP which stays on the
originating web page, I need the script to redirect...
|
by: DotNetGruven |
last post by:
I've got a page that does a search... There is an ImageButton on it that
allows the user to reset the search.
The Click Handler for the button clears out the Data and then redirects to
the same...
|
by: Jed |
last post by:
I have written an HttpHandler which I invoke through an ashx page.
The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page.
Everything...
|
by: Keith Patrick |
last post by:
I have to do some programmatic redirects (in several pages) based on URLs I
am given from an external source. The URLs have querystrings at the end,
but one in particular is about 240 chars long,...
|
by: ETK |
last post by:
Hi,
I need to POST data to some aspx page and after that redirect to this page
( page isn't on my local server where my page is). Is it possible to do this
from aspx code on server side?
Thanks,...
|
by: David |
last post by:
I need to redirect to a page and HTTP Post data. The
Response.Redirect does not work and the HTTPREQUEST option calls the
page and waits for a response, but I need to transfer control to the...
|
by: Savanah |
last post by:
Hello,
I would like to call another page using POST method, something like this :
Response.Redirect("http://www.mydomain.com/cgi-bin/log.dll?email="+tbLoginID").
I set this in my page
<form...
|
by: UKuser |
last post by:
Hi,
I'm not sure if this can be done as I've searched the web and this
forum.
I am using an online merchant provider and I must post certain
variables to their webforms through a form on my...
|
by: gnawz |
last post by:
Hi guys,
I have a couple of php files that perform various tasks.
I will use fields in my system and provide code as well
I need help as follows:
My database contains the fields Category...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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...
|
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,...
|
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...
| |