通过修改GLOBAL.CS限制文件上传大小
一直在寻找一个简单的方法,不知道这个方法如何!
protected void Application_OnBeginRequest(Object sender , EventArgs e)
{
if (Request.ContentLength > XXX)
{
Response.Redirect("WebForm1.aspx");
}
}
posted on 2004-05-22 13:23 Commansource 阅读(191) 评论(0) 收藏 举报
浙公网安备 33010602011771号