单项选择题
You are developing an ASP.NET MVC 2 Web Application. You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization.
Which code segment should you use?()
A.
B.
C.
D.
相关考题
-
多项选择题
You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required" when the user does not enter an address and "Invalid e-mailaddress" when the user enters an address that is not formatted properly. You need to ensure that the appropriate error message is displayed when the text box does not contain a valid e-mail address. Which two code segments should you add?()
A.
B.
C.
D. -
多项选择题
You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality.You need to ensre that the JavaScript file is included in the assembly. Which two actions should you perform?()
A.Add the following assembly attribute to the AssemblyInfo file.
B.Add the following assembly attribute to the AssemblyInfo file.
C.In the Properties window for the Refresh.js file, set the Build Action to Embedded Resource.
D.In the Properties window for the Refresh.js file, set the Build Action to Content. -
多项选择题
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML. Which two actions should you perform?()
A.Add the WebGet attribute to the service contract.
B.Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.
C.Add the WebInvoke attribute to the service contract.
D.Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.
