Web Forms Question:

Download Job Interview Questions and Answers PDF

How to upload a file on web forms?

Microsoft Web Forms Interview Question
Microsoft Web Forms Interview Question

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?