Post a request to an other web server from may asp.net app

J

Jensen Bredhal

Hello,

How can i post to a different web server other then the one hosting my aspx
page?

Many thanks?
 
E

Ed Gibbs

Jensen Bredhal said:
Hello,

How can i post to a different web server other then the one hosting my aspx
page?

Many thanks?

Jensen,

Web Forms are built around the assumption that you're doing a
"post-back" to the same form. My recommendation is let the page post
back, then do a Response.Redirect in your postback handler (for
example the button click event) to transfer control to the other page.
You can pass values to the other web server in the URL.

If simple navigation isn't enough and you truly need to POST, I'd
recommend *not* using an ASPX page; you'd have to hack it
substantially.

Hope this helps,
Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top