单项选择题
You deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()
A. <authorization> <allow users="?"/> </authorization>
B. <authorization> <deny users="?"/> </authorization>
C. <authorization> <deny users="*"/></authorization>
D. <authorization> <allow users="*"/> </authorization>
相关考题
-
单项选择题
You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be able to upload files. Which code segment of the Web.config file should you use? ()
A. <allow verbs="GET" users="*" /><deny verbs="POST" users="*" /><allow verbs="POST" roles="Administrators" />
B. <allow roles="Administrators" /><deny users="*" />
C. <allow u sers="Administrators" /><allow users="*" />
D. <allow v erbs = "POST" roles="Administrators" /><deny verbs="POST" users="*" /><allow verbs="GET" users="*" /> -
多项选择题
You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform? ()
A. Create a valid
definition in the Web.config file.
B. Set the passwordFormat attribute of the configured membership provider to Encrypted.
C. Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.
D. Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to True. -
多项选择题
You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()
A. Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
B. Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
C. Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
D. In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.
