• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

Send Form Post from Hyperlink to external URL without changing the Postback URL

I am using ASP.NET 2.0, and have built a dashboard that includes a simple list of hyperlinks that map to an iframe so that all of this information is stored on a single web page.

One of the links must go to an outside vendor, but I need to pass an encrypted account via the Post method (querystring is not an option). So I am wondering how to do this when the post action on the web form must remain my homepage?

I though of using the PostBackOptions Class, but the example in the .NET framework class library doesn't quite fit the bill as to what I am doing. Pleas advise.
  • 2
1 Solution
try using client side events .. use the onload javascript event and use xmlhttp to access the outside vendor's link .. here you can post the values ..

the code will look something like
xmlhttp.open( 'post', url, false );
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');

oh, i forgot to mention .. you have to assign the returned content (which i assume will be HTML tags of a page) to the iframe ..
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now