POST to outside legacy form?
-
I need my asp.net app to POST some data to an outside form, I have no problem doing this "inside" the context of the page, and reading back the result, but I actually want to redirect the user completely to the outside form (which by the way is https).
-
I need my asp.net app to POST some data to an outside form, I have no problem doing this "inside" the context of the page, and reading back the result, but I actually want to redirect the user completely to the outside form (which by the way is https).
-
I need my asp.net app to POST some data to an outside form, I have no problem doing this "inside" the context of the page, and reading back the result, but I actually want to redirect the user completely to the outside form (which by the way is https).
Scott Phelps wrote: POST to outside legacy form? I think it is a bad idea that ASP.NET does not allow you to specify the target of FORM element anymore, I can see their point but then for when you need advanced stuff like you do it just limits us. What you can do is in the BODY ONLOAD event of your page you use JavaScript to change the ACTION attribute of the form to the legacy page you want. e.g.
onload="document.frmTest.action = 'mylegacypage.asp';"
Or you could let ASP.NET handle the FORM and then redirect to the other page carrying along the POST data (not that I know how to do that, I just know it can be done.)Paul Watson
Bluegrass
Cape Town, South Africabrianwelsch wrote: I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.