简单的asp.net提交表单问题
<form name= "frm1 " action= "http://payment.chinapay.com:8081/pay/TransGet " METHOD= "POST " >
<input type=hidden name= "MerId " value= "808080010500435 " >
<input type=hidden name= "OrdId " value= "0700004350100297 " >
<input type=hidden name= "TransAmt " value= "000000217000 " >
<input type=hidden name= "CuryId " value= "156 " >
<input type=hidden name= "TransDate " value= "20070706 " >
<input type=hidden name= "TransType " value= "0001 " >
<input type=hidden name= "Version " value= "20040916 ">
<input type=hidden name= "BgRetUrl " value= "http://www.3c800.com/a9/accept.asp ">
<input type=hidden name= "PageRetUrl " value= "http://www.3c800.com/a9/chinapayback.asp ">
<input type=hidden name= "GateId " value= "1007 ">
<input type=hidden name= "Priv1 " value= "Memo ">
<input type=hidden name= "ChkValue " value=3ED1AF043A823F56119D785D3BAA337FF9E6759FB5FAD8C16BED358DED044B68BD4AE249443A33FD272898D58849A5D21B129163F28F0384DE12BFF9D64CB70B0516E7F1F9926A2F66FBF884851C4CAF0BD58443AFB3EB83F10D1DB035FC2003F7F3E90630B53AE0071C65CFEC1200A2888C82F536E9C34002CFC72352276B23 >
</form> 上面代码在html可以提交成功,但在上面的参数是动态的,在asp.net页面我是这样写的
protected void Button1_Click(object sender, EventArgs e)
{
StringBuilder strBuilder = new StringBuilder();
Response.Write( " <input type=hidden name=\ "MerId\ " value=\ "808080010500435\ " > ");
Response.Write( " <input type=hidden name=\ "OrdId\ " value=\ "0700004350100297\ " > ");
Response.Write( " <input type=hidden name=\ "TransAmt\ " value=\ "000000217000\ " > ");
Response.Write( " <input type=hidden name=\ "CuryId\ " value=\ "156\ " > ");
Response.Write( " <input type=hidden name=\ "TransDate\ " value=\ "20070706\ " > ");
Response.Write( " <input type=hidden name=\ "TransType\ " value=\ "0001\ " > ");
Response.Write( " <input type=hidden name=\ "Version\ " value=\ "20040916\ "> ");
Response.Write( &qu