form post 方式传值

来源:互联网 发布:单片机各种线介绍 编辑:程序博客网 时间:2024/06/01 20:56

<form id="form2" action="../MyUnion/FavoritePosts.aspx" method="post" target="_self">
<input type="hidden" id="hfJobID" name="hfJobID" /></form>

 

js代码:

function check()

{

  form2.hfJobID = document.GetElementByID("hfJobList").vale;

  form2.submit();

}

 

目标页面:

string Id= this.Request["hfJobID"].toString();