nerdexam
Microsoft

70-519 · Question #58

You are modifying an existing ASP.NET Web application. Each page of the Web application includes a navigation bar and a print button. You have the following requirements: - Enable users to print…

The correct answer is A. Add an OnClientClick event handler to the print button to call the window.print() function. D. In the header, add a style sheet tag that sets the media attribute to print. See the full explanation below for the reasoning.

Question

You are modifying an existing ASP.NET Web application. Each page of the Web application includes a navigation bar and a print button. You have the following requirements:

  • Enable users to print pages of the Web site without printing the

navigation bar.

  • Do not create a separate version of the page formatted for printing.
  • Leverage the existing print button on each page.

You need to recommend an approach that meets the requirements. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

Options

  • AAdd an OnClientClick event handler to the print button to call the window.print() function.
  • BAdd an Onclick event handler to the print button to set the Response.ContentType property
  • CAdd the PrintingPermission attribute to the code-behind page class.
  • DIn the header, add a style sheet tag that sets the media attribute to print.

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    5% (1)
  • C
    14% (3)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice