"Start Upload" ID = "UploadButton"> asp: button> p>
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);} ///