J
Jack
Hi there,
I'm a very experienced C++ developer but a relative newcomer to web
development and a raw neophyte in the ASP.NET arena. I have a very simple
scenario that hopefully someone can help me with. I have a 3rd-party HTML
form with a single (submit) button and a number of (static) hidden fields
(all values hardcoded). The form is pure HTML (no ASP or ASP.NET whatsoever)
and it simply posts its data to a 3rd-party site when the button is clicked
(i.e., the form's "action" attribute is set to the appropriate URL
accordingly). This site then reads its data from the hidden fields on the
form. I now want to re-write this form using ASP.NET but I'll add a single
dropdown list. The form should then get posted back to my own server instead
where I can now set (or dynamically create) these hidden fields based on the
users' selected dropdown value. I then want to post the form back to the
original 3rd-party site just like the original form handled it (but the
hidden fields were now filled in by my server - they're no longer
hardcoded). I can wire up the submit button's event handler in ASP.NET and
check the dropdown list but I'm not sure what code I should be calling to
dynamically create these hidden fields and then post the form to its
original 3rd-party site. Can anyone show me the basic code to get me
started. Thanks very much.
I'm a very experienced C++ developer but a relative newcomer to web
development and a raw neophyte in the ASP.NET arena. I have a very simple
scenario that hopefully someone can help me with. I have a 3rd-party HTML
form with a single (submit) button and a number of (static) hidden fields
(all values hardcoded). The form is pure HTML (no ASP or ASP.NET whatsoever)
and it simply posts its data to a 3rd-party site when the button is clicked
(i.e., the form's "action" attribute is set to the appropriate URL
accordingly). This site then reads its data from the hidden fields on the
form. I now want to re-write this form using ASP.NET but I'll add a single
dropdown list. The form should then get posted back to my own server instead
where I can now set (or dynamically create) these hidden fields based on the
users' selected dropdown value. I then want to post the form back to the
original 3rd-party site just like the original form handled it (but the
hidden fields were now filled in by my server - they're no longer
hardcoded). I can wire up the submit button's event handler in ASP.NET and
check the dropdown list but I'm not sure what code I should be calling to
dynamically create these hidden fields and then post the form to its
original 3rd-party site. Can anyone show me the basic code to get me
started. Thanks very much.