Which method of the FieldTemplateUserControl class should you override in the BooleanField class?
You are developing an ASP.NET Dynamic Data Web application.
Boolean fields must display as Yes or No instead ofas a check box.
You replace the markup in the default Boolean fieldtemplate with the following markup.
<asp:Label runat=”server” ID=”label” />
You need to implement the code that displays Yes orNo.
Which method of the FieldTemplateUserControl class should you override in the BooleanField class?
Which two actions should you perform?
You are developing an ASP.NET Web service.
The following code segment implements the service. (Line numbers are included for reference only.)
01 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
02 public class ProductService : System.Web.Services.WebService
03 {
04 [WebMethod]
05 public Product GetProduct(string name)
06 {
07
08 }
09
10 [WebMethod]
11 public Product GetProduct(int id)
12 {
13
14 }
15 }
You need to ensure that both GetProduct methods canbe called from a Web client.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
You need to ensure that the application checks the database every 10 seconds
You are developing an ASP.NET Web application.
Application data is stored in a Microsoft SQL Server 2008 database.
You configure a connection string named cnnContoso.
The application must cache the data that is returned from the database by using this connection string.
You need to ensure that the application checks the database every 10 seconds.
What should you do?
You need to ensure that all data that is submitted passes validation before the data is saved in a database
You are developing an ASP.NET Web page that contains input controls, validation controls, and a button
named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page
02 {
03 protected void SaveToDatabase()
04 {
05
06 }
07
08 protected void btnSubmit_Click(object sender, EventArgs e)
09 {
10
11 }
12 }
You need to ensure that all data that is submitted passes validation before the data is saved in a database.
What should you do?
You need to ensure that the custom formatting is applied to only the EmailAddressproperty
You are developing a Asp.net MVC 2 application
The following Customerclass is rendered by the Html.DisplayForModelhelper method.
public class Customer
{
public string FirstName { get; set;}
public string LastName { get; set;}
public string EmailAddress { get; set;}
}
You create a partial view named Email.ascxin the Views/Shared/DisplayTemplates folder. Email.ascx
performs custom formatting of e-mail addresses.
You need to ensure that the custom formatting is applied to only the EmailAddressproperty.
What should you do?
Which client endpoint configuration should you use?
You are developing an ASP.NET web application.
The application consumes a WCF service that implements a contract named IcontosoService.
The service is located on the local network and is exposed using the following endpoint <endpoint
name=”udpDiscover” kind=”udpDiscoveryEndpoint”/>
You need to consume the service by using the WS-Discovery protocol.
Which client endpoint configuration should you use?
You need to ensure that content flows from right toleft
You are developing an ASP.NET web page.
You need to ensure that content flows from right toleft.
What should you do?
You need to ensure that only the required MicrosoftAJAX Framework Javascript files are loaded
You are implementing an ASP.NET web page that contains a ScriptManager control.
You need to ensure that only the required MicrosoftAJAX Framework Javascript files are loaded.
You need to ensure that the routes are registered correctly
You are developing an ASP.NET MVC 2 Web applicationthat displays product details.
The global.asax.cs file contains the following codesegment
01 public static void registerRoutes(RouteCollection routes)
02 {
03 routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”);
04 routes.MapRoute(“Default”, “{controller}/{action}/{id}”, new {controller = “Home”, action = “index”, id =
UrlParameter.Optional});
05 }
The URL “/products/PRODUCTNAME”, where PRODUCTNAME is the name of the product, must give details
for the product that is stored in a Microsoft SQL Server database.
You need to ensure that the routes are registered correctly.
What should you do?
You need to ensure that the application shows the Orderand Customerentities and hides all other entities
You are deloping an ASP.NET Dynamic Data Web application.
The application uses entities from a global librarynamed Entities.
The Application_Startevent contains the following code segment:
DefaultModel.RegisterContect(typeof)(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffoldAllTables = false });
You need to ensure that the application shows the Orderand Customerentities and hides all other entities.
What should you do?