You need to ensure that the data that is submitted is an Employee instance and that a LastName value is given
You are developing an ASP.NET MVC2 view and controller. The application includes a class names
Employee that has a LastName property. The controller requires an action method that will insert an
Employee instance into a database. You need to ensure that the data that is submitted is an
Employee instance and that a LastName value is given. What should you do?
What are two possible ways to achieve this goal?
An existing Windows Communication Foundation (WCF) service uses basicHttpBinding.
You are releasing updates to the service and the client application. You need to enable the
client application to flow transactions to the service. What are two possible ways to achieve
this goal? (Each correct answer presents a complete solution. Choose two.)
Which code segment should you use?
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?
Which two code segments should you add?
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-mail address” 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? (Choose 2)
What should you add to the filters element of the application configuration file?
You are developing a Windows Communication Foundation (WCF) service. You enable
logging in the configuration file. The opening tag is defined as follows. You need to ensure
that logging is implemented so that only messages with SOAP headers are logged. What
should you add to the filters element of the application configuration file?
You need to ensre that the JavaScript file is included in the assembly
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 (Choose 2)
You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML
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 (Choose 2)
You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7
You are developing a custom service host for a Windows Communication Foundation
(WCF) service. The service host is named MovieServiceHost. You need to deploy the
service with the custom service host in Microsoft Internet Information Services (IIS) 7.0.
What should you do?
You need to minimize the amount of data is sent to the user.What should you do?
You are developing an ASP.NET Web application. The application must pass an object that contains
user-specific data between multiple pages. The object ismore than 100 KB in size when
serialized.You need to minimize the amount of data is sent to the user.What should you do?
Which configuration should you add to the web.config file?
You are developing an ASP.NET Web application.The application is configured to use the
membership and role providers. You need to allow all users to perform an HTTP GET for application
resources, but you must allow only the user named Moderator to perform a POST operation.Which
configuration should you add to the web.config file?