QUESTION 34
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You plan to submit text that contains HTML code to a page in the application.
You need to ensure that the HTML code can be submitted successfully without affecting other applications that run on the Web server.
What should you do?
A.Add the following attribute to the @Page directive.
EnableEventValidation="true"
B.Add the following attribute to the @Page directive.
ValidateRequest="true"
C.Set the following value in the Web.config file.
D.Set the following value in the Machine.config file.
Answer: C
QUESTION 35
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service.
The Web service is hosted at the following URL.
http://www.contoso.com/TemperatureService/Convert.asmx You need to ensure that the client computers can communicate with the service as part of the
Which code fragment should you use?
A.
B.
C.
D.
Answer: B
QUESTION 36
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a file named movies.xml that contains the following code fragment.
You add a Web form to the application.
You write the following code segment in the Web form. (Line numbers are included for reference only.)
01
下一篇:2012微软认证考试考前训练题1