467,915 Members | 1,568 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

HTTP Post and Redirect?

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
page. Eg. Redirect and POST data.

The only way I can see to do this is to format a HTML/POST, with
Javascript, page and use the RESPONSE.WRITE option.

Thanks

Nov 19 '05 #1
  • viewed: 3570
Share:
1 Reply
Hi David,

Your question is a bit confusingly phrased. You say you need to redirect and
POST data, but you don't say whether you want to redirect to the same page
you're POSTing to. However, I get the impression that what you really want
to do is to POST data to a page, which doesn't require a redirect, since the
page that is POSTed to is the page that is returned. That is, when you POST
to an ASP.Net page, that is the page that is returned by the POST request.

Again, I can't be sure from your description, but I'll step out on a limb a
bit and make a guess that you're having trrouble figuring out how to POST
from one ASP.Net page to another, since the ASP.Net WebForm model always
POSTs back to itself. If this is the case, you should be aware that you can
have more than one form on a WebForm page, and that only one form has to be
the WebForm. Another form on the page can post to any URL you like, and it
can be submitted via JavaScript.

If this is indeed the case, come back with any questions you may have about
implementing this. If not, please clarify your question.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
"David" <ma******@sbcglobal.net> wrote in message
news:at********************************@4ax.com...
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
page. Eg. Redirect and POST data.

The only way I can see to do this is to format a HTML/POST, with
Javascript, page and use the RESPONSE.WRITE option.

Thanks

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Tim Wade | last post: by
1 post views Thread by dave | last post: by
8 posts views Thread by Victor | last post: by
8 posts views Thread by Andreas Klemt | last post: by
6 posts views Thread by Nick Horrocks | last post: by
5 posts views Thread by Tyler | last post: by
reply views Thread by Wayne Deleersnyder | last post: by
56 posts views Thread by UKuser | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.