Web Forms Question:
Download Questions PDF

How to upload a file on web forms?

Answer:

if (FileUpLoad1.HasFile)
{
FileUpLoad1.SaveAs(Server.MapPath("upload")+ "\\" + FileUpLoad1.FileName);
}

Download Microsoft Web Forms Interview Questions And Answers PDF

Previous QuestionNext Question
How to use Server.Transfer in dot net?How to upload an image files only in .net web forms?