Posted in General

Question by Mr. Stranger

Ok i received a question from a strager straight into my Yahoo email account. This was my response.

Ahhh, just have a ASP.NET or any button with onclick calling a function. When user clicks the button just do the submit using javascript like below.

function WillSubmitToExternalUrl()
document.forms[0].action = “”;

You can also do a post using WebRequest/WebResponse classes. But thats unnecessary, unless you have some secured information.
Where did you get my email from?

Colin Fitzgerald wrote:

I am stumped and in the process of trying to figure out how to get an ASP.NET form to post to an external URL (“”), however because a server-side form cannot have an action property, and because the Server.Transfer method does not work with external destinations, I am stuck. Do you have any suggestions as to what I should do or where I should start? The above URL is a 3rd party vendor that takes form information and handles the data on their dB.

Thanks Much,

Colin FitzGerald
IS Team
Ellsworth Adhesives
(262) 253-8600 x737

PS: My form must be server-side because it contains validation web controls and utilizes several other web controls…


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s