<asp:FileUpload ID="FileUpload1" runat="server" onchange="fileCheck(this);" />
if (FileUpload1.PostedFile != null) { fileName1 = FileUpload1.FileName; filePath1 = Server.MapPath("Image/" + System.Guid.NewGuid() + fileName1); FileUpload1.SaveAs(filePath1); int getPos = filePath1.LastIndexOf("\\"); int len = filePath1.Length; getPath1 = filePath1.Substring(getPos, len - getPos); pathToStore1 = getPath1.Remove(0, 1); }
if ((FileUpload1.PostedFile != null) && (FileUpload1.PostedFile.ContentLength > 0)) { string filename = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
if(FileUploadControl.HasFile) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)