if (FileUpload1.HasFile)
try
{
FileUpload1.SaveAs("C:\\Users\\Vinay\\Documents\\Visual Studio 2010\\WebSites\\Onlinedoctorsportal\\vini" +
FileUpload1.FileName);
Label10.Text = "File name: " +
FileUpload1.PostedFile.FileName + "<br>" +
FileUpload1.PostedFile.ContentLength + " kb<br>" +
"Content type: " +
FileUpload1.PostedFile.ContentType;
}
catch (Exception ex)
{
Label10.Text = "ERROR: " + ex.Message.ToString();
}
else
{
Label10.Text = "You have not specified a file.";
}
//Stream obj = FileUpload1.FileContent;
//Session["file"] = obj;
//Response.Redirect("Form3.aspx");
}
}
what i want is to save the uploaded file to a folder named vini but it is showing the file but not saving it to the specified folder as shown please help