In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
POST data (i.e., like a form. The form data is changed dynamically by the
C# page.
Can anyone point me to an example? I think it is ...
Response.AddHeader( ... );
Response.Redirect( ... );
If it is, what is the Header designation? If it isn't, how do I do it?
(The reason for doing this instead of "get" is to hide the parameters from
the "casual" visitor.

Signature
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
Scott M. - 01 Dec 2006 03:03 GMT
Use Server.Transfer(url)
> In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
> POST data (i.e., like a form. The form data is changed dynamically by the
[quoted text clipped - 9 lines]
> (The reason for doing this instead of "get" is to hide the parameters from
> the "casual" visitor.
Thom Little - 01 Dec 2006 16:46 GMT
The websites are unfortunately on different servers. This rules out
Server.Transfer( ).

Signature
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
> Use Server.Transfer(url)
Scott M. - 03 Dec 2006 23:35 GMT
Why does this rule out ServerTransfer()? The current data will be posted to
whatever url you pass it to (even if that is on a different server).
> The websites are unfortunately on different servers. This rules out
> Server.Transfer( ).
>
>> Use Server.Transfer(url)
Thom Little - 05 Dec 2006 22:54 GMT
I have not been able to transfer to another server as you suggest. There
are a number of references that state that it is limited to the same server.
One of them is ...
http://www.developer.com/net/asp/article.php/3299641
... have you seen an example somewhere that shows this assertion to be
incorrect? (It would be wonderful if you have.)

Signature
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
> Why does this rule out ServerTransfer()? The current data will be posted
> to whatever url you pass it to (even if that is on a different server).
Dhanraj K.S - 29 Dec 2006 14:15 GMT
There are two ways you can do that,
1. You can create an object for WebRequest and Create a Name Value
collection for the values and post the data to that external URL
2. Use Response.Write / Script Manager of ASP.NET 2.0 to submit it through
simple form submission.
I have just given you an idea, Let me know if you know more details on how
to do it ?
Thanks
Dhanraj
> In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
> POST data (i.e., like a form. The form data is changed dynamically by the
[quoted text clipped - 9 lines]
> (The reason for doing this instead of "get" is to hide the parameters from
> the "casual" visitor.