We help IT Professionals succeed at work.

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

aschlueter
aschlueter asked
on
Medium Priority
1,048 Views
Last Modified: 2008-03-24
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.
Comment
Watch Question

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');
xmlhttp.send('Field1=value1&field2=value2');

Rejo
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.

Computer101
EE Admin

Explore More ContentExplore courses, solutions, and other research materials related to this topic.