Currently I'm working with ASP.Net and a nested form. My problem is,
that ASP.Net only allows one form per page, but I need a kind of sub-form
to redirect to another page.
My idea was to create a submit using JavaScript, but I don't get how to set the
content of the post, which will be send.
For example I've tried to use the following code:
<div>
<input type="hidden" value="ABCDE" />
<input title="Send Form" onclick="this.form.method = 'post'; this.form.action = 'https://externpage/url'; this.form.submit();" type="submit" />
</div>
My problem is, that the content of the request should only be the hidden fields containing ABCDE and not all fields on the page. How can i achieve this using JavaScript and HTML?
Thanks a lot!
ASP.NET WEbFormsyou can gettagby Id incodebehinddisabledhtml attribute?