ASP.NET can write a Dongdong uploading the entire folder

xiaoxiao2021-03-06  95

"Start Upload" ID = "UploadButton">

"); try {for (int ifile = 0; ifile

IF (fileEname! = ") {fileExtension = system.io.path.Getextension (filename); strmsg.append (" Uploaded file type: " PostedFile.ContentType.toString () "
"); strmsg .Append ("Client File Address:" PostedFile.FileName "
"); strmsg.append ("Upload file name:" filename "
"); strmsg.append ("upload Document Extension: " FileExtension "


"); /// 'can be saved to different folders according to the different names of the extension name /// Note: You may want to modify your folder anonymous write Incendat.

postedFile.SaveAs (System.Web.HttpContext.Current.Request.MapPath ( "images /") fileName);}} strStatus.Text = strMsg.ToString (); return true;} catch (System.Exception Ex) {strStatus .Text = ex.Message; Return False;}} #Region Web Form Designer Generated Code Override Protected Void OnNit (Eventargs E) {// // Codegen: This call is necessary for the ASP.NET Web Form Designer of. // InitializeComponent (); base.onit (e);} ///

/// Designer Supports the required method - Do not use the code editor to modify the // / this method.

转载请注明原文地址:https://www.9cbs.com/read-104213.html

New Post(0)