1.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You create a custom-templated server control.You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?
2.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You plan to submit text that contains HTML code to a page in the application.You need to ensure that the HTML code can be submitted successfully without affecting other applications that run on the Web server.What should you do?
3.
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.You need to define a class named Order that can participate within a transaction. What should you do?
4.
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.The application loads customer records into a DataTable object that is contained in a database. The records in the DataTable object will be updated by the users of the application. The data in the updated records might contain errors.You need to ensure that the data in the updated records is validated before it is saved to the database.What should you do?
5.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service. The Web service is hosted at the following URL. http://www.contoso.com/TemperatureService/Convert.asmx You need to ensure that the client computers can communicate with the service as part of the configuration. Which code fragment should you use?
6.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You create a FormView control to access the results of a query. The query contains the following fields: EmployeeID FirstName LastName The user must be able to view and update the FirstName field.You need to define the control definition for the FirstName field in the FormView control.Which code fragment should you use?
7.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control. (Line numbers are included for reference only.) 01 02 Category: 03 09 10 You need to ensure that the changes made to the CategoryID field can be written to the database.Which code fragment should you insert at line 04?
8.
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.The application uses a SqlConnection object that is active for the lifetime of a user session.You need to ensure that the application gracefully handles all the exceptions that cannot be recovered.Which task should your code perform?
9.
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database. You write the following two DDL statements. CREATE TABLE tblCustomers( CustID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, CompanyName VARCHAR(50) NOT NULL, ContactName VARCHAR(100) NOT NULL) GO CREATE TABLE tblCustomerOrders( OrderID INT IDENTITY(1,1) NOT NULL, CustID INT NOT NULL FOREIGN KEY REFERENCES tblCustomers(CustID), OrderDate DateTime NOT NULL) When a user attempts to delete the data from the tblCustomers table during execution, the application throws a SqlException exception.The application was designed without any DataRelation objects.You need to successfully delete the data from the tblCustomers table. What should you do?
10.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.You plan to deploy the application to a test server.You need to ensure that during the initial request to the application, the code-behind files for theWeb pages are compiled. You also need to optimize the performance of the application. Which code fragment should you add to the Web.config file?