nerdexam
Microsoft

70-515 · Question #104

The page will be posted to the server after one or more image files are selected for upload. You need to ensure that all unuploaded files are saved to the server within one call to a single event…

The correct answer is A. Read the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file. See the full explanation below for the reasoning.

Question

The page will be posted to the server after one or more image files are selected for upload. You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. What should you do?

Options

  • ARead the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file.
  • BRead the HttpRequest.inputStream property and call the System.Io.File.WriteLines method for
  • CRead the HttpRequest.inputStream property and call the HttpResponse.WriteLine method for
  • DRead the HttpRequest.Files property and call the System.Io.File.WriteLines method for each

How the community answered

(31 responses)
  • A
    74% (23)
  • B
    13% (4)
  • C
    10% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice