提供一个表单,进行post数据处理

var strContent = "aaaaa";
html.Append("<html><body><form id='postUploadFile' name='downloadFile' runat='server' style='    
  display:none' method='post' >"); html.Append("<input id='fileData' name='btData' type='hidden' value='" + strContent + "' />"); html.Append("</form></body></html>"); html.Append("<script type='text/javascript'>(function(){document.getElementById('postUploadFile').action = '"); html.Append(serverPath + "/postUploadFile.ashx?random=" + random + "';document.getElementById('postUploadFile').submit();})();</script>"); Response.Write(html.ToString()); Response.Flush();
posted @ 2013-06-18 21:37  Vihone  阅读(281)  评论(0编辑  收藏  举报