怎么把aspx在客户端生成的HTML内容提交服务器
a.aspx 内容
<html id="content">
<head>
<script type="text/javascript">
function getconetnt()
{
var c=document.getElementByID("content");//得到页面内容
document.getElementByID("htmlcontent").value=c;
__dopostback("blnSave","");
}
</cript>
</head>
<body>
<input id="clientinput" type="text" />
.....
<input id="htmlcontent" type="hidden" runat="server" />
</body>
</html>
我想把客户端生成的HTML内容回传给服务器保存,
这个内容有两部分,
一部分同服务端在数据库中得到,
另一部分由客户在网页中输入,
我想事先把html内容保存到一个隐藏的text里,
然后在服务器端读取这个text的内容,但是因为内容复杂,提交时,服务器认为这个内容不安全,
阻止了提交,
想问一下大家,有没有更好的办法把这个内容提交到服务器?