asp下对POST提交数据限制的解决方法(2)
}
//在Form中DIV(divHidden)内动态插入各hidden域的HTML代码
document.all.divHidden.innerHTML = strHTML;
//给各子域赋值
for (var i = 1; i <= iCount; i++)
{
MyForm.elements["hdnBigField" + i].value = strData.substring((i - 1) * iMaxChars, i * iMaxChars);
}
//原数据域清空
MyForm.BigField.value = "";
}
</script>
服务器端示例代码ASP/Visual Basic代码
复制代码 代码如下:
<%
Dim strData
Dim intFieldCount
Dim i
intFieldCount = Request.Form("hdnCount")
For i=1 To intFieldCount
strData = strData & Request.Form("hdnBigfield" & i)
Next
Response.Write strData
%>