postdata - ASP.Net using multiple form tag and post them to another page -


i don't know it's possible try achieve post data 1 page using second form.
problem need form tag user interface containing callback panels etc. want put second form hidden-field:

<form id="postform" method="post" action="target.aspx">     <input type="hidden" id="id" /> </form> 

i submit form javascript jquery:

$("#id").val(id); $("#postform").submit(); 

is there way access value of hidden field on target page?

you should give hidden field name attribute:

<input type="hidden" id="id" name="id" /> 

you'll able use request.form in target page access posted data:

string postedid = request.form["id"]; 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -