Web Forms Question:
How to upload a file on web forms?

Answer:
if (FileUpLoad1.HasFile)
{
FileUpLoad1.SaveAs(Server.MapPath("upload")+ "\\" + FileUpLoad1.FileName);
}
{
FileUpLoad1.SaveAs(Server.MapPath("upload")+ "\\" + FileUpLoad1.FileName);
}
Previous Question | Next Question |
How to use Server.Transfer in dot net? | How to upload an image files only in .net web forms? |