盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

使aspx页面能接受HTML,asp的页面传送的文件

时间:2024/12/23作者:未知来源:盾怪网教程人气:

[摘要]'); savePath = root.GetElementsByTagName("userPath").Item(0).InnerText.Trim(); tr...
');
   savePath = root.GetElementsByTagName("userPath").Item(0).InnerText.Trim();
   try
   {
    maxSize = Convert.ToInt64(root.GetElementsByTagName("maxSize").Item(0).InnerText.Trim());
   }
   catch { maxSize = 10*1024; }
 }
 protected void Page_Load(object sender, EventArgs e)
 {

  string[] allowedExt = new string[] { }, denyedExt = new string[] { };
  string savePath = String.Empty;
  long maxSize = 10000;
  string type = Request.QueryString["Type"];
  if(type!=null&&type!=string.Empty)
   type=type.ToLower();
  else
   type="file";
  if (type == "image")
  {
   GetConfig("image", out allowedExt, out denyedExt, out savePath,out maxSize);   
  }
  if (type == "file")
  {
   GetConfig("file", out allowedExt, out denyedExt, out savePath, out maxSize);   
  }
  if (type == "flash")
  {
   GetConfig("flash", out allowedExt, out denyedExt, out savePath, out maxSize);  
  }
  if (savePath == string.Empty

关键词:使aspx页面能接受HTML,asp的页面传送的文件




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版