Web Forms Question:
Download Job Interview Questions and Answers PDF
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);
}
Download Microsoft Web Forms Interview Questions And Answers
PDF
Previous Question | Next Question |
How to use Server.Transfer in dot net? | How to upload an image files only in .net web forms? |