You are creating an ASP.NET application by using the .NET Framework 3.5. The application accesses a Windows Communication Foundation (WCF) service. You plan to debug the application. You need to ensure that you can step into the WCF service and debug the application. What should you do
You are creating an ASP.NET application by using the .NET Framework 3.5. You use LINQ to SQL to query a Microsoft SQL Server 2008 database. You need to create a LINQ query to retrieve information on order and order details. You need to ensure that the LINQ query executes the following SQL statement:
SELECT Order.OrderID ,Order.Description ,OrderDetails.UnitPrice FROM Order JOIN OrderDetails ON Order.OrderID = OrderDetails.OrderID Which LINQ query should you use?
You are creating an ASP.NET application by using the .NET Framework 3.5. The application stores data in a database that might be implemented in Microsoft SQL Server, Microsoft Access, or a variety of third-party databases. You need to implement a data access strategy that meets the following requirements: The same data access code is used for all database platforms. The application defines the SQL syntax used. The application reduces the vulnerability to SQL injection attacks. What should you do?
You are creating an ASP.NET application by using the .NET Framework 3.5. The application accesses a Windows Communication Foundation (WCF) service. You plan to debug the application. You need to ensure that you can step into the WCF service and debug the application. What should you do?
Which of the following raises a bubbled event?
Which one of the following code snippets can be used to obtain the time of the request on the server?
You are creating an ASP.NET application by using the .NET Framework 3.5. You plan to develop a custom control library. Developers will use the control on Web pages in multiple applications. Each ASP.NET application will be configured by using different state management strategies. You need to ensure consistent state management for all instances of the control. Which state repository should you choose?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom control named OrderForm. You write the following code segment.
public delegate void CheckOrderFormEventHandler(EventArgs e);
private static readonly object CheckOrderFormKey = new object();
public event CheckOrderFormEventHandler CheckOrderForm { add { Events.AddHandler(CheckOrderFormKey, value); } remove { Events.RemoveHandler(CheckOrderFormKey, value); } }
You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event. Which code segment should you
You are creating a Windows Communication Foundation service by using Microsoft .NET
Framework 3.5.
You create the following service definition.
[ServiceContract(SessionMode=SessionMode.Required)]
public interface IMyService
{
...
}
You need to custom manage the lifetime of the session.
Which service implementation should you use?
You have a Microsoft Windows Communication Foundation (WCF) service created by using Microsoft .NET Framework 3.5.
The service includes the following code:
[ServiceContract(CallbackContract=typeof(IGetDataCallback))]
public interface IDataService
{
[OperationContract]
void GetData();
}
public interface IGetDataCallback
{
[OperationContract]
void DoSomething();
}
To ensure user interface (UI) responsiveness, you want to ensure that the callback method does not run on the same thread as the UI. You want to accomplish this with the least development effort.
What should you do?