Asp.net fileupload用法
摘要:
文件类型验证 protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { fileExt = System.IO.Path.GetExtension(FileUpload1.FileName); if (fileExt == ".jpg" || fileExt == ".gif") { try { FileUpload1.SaveAs(Server.MapPath("upload") + "\\" + F 阅读全文
posted @ 2010-10-13 12:35 汤尼 阅读(493) 评论(0) 推荐(0) 编辑