Which of the following method is used to save the selected file using FIleUpload control?

89. Which of the following method is used to save the selected file using FIleUpload control?

  1. PostedFile.Upload()
  2. PostedFile.SaveAs()
  3. PostedFile.SaveFile()
  4. None of the above

Answer: B) FileUpload1.PostedFile.SaveAs()

Explanation:

The "FileUpload1.PostedFile.SaveAs()" method is used to get selected filename using FileUpload control.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.