Apply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.
Apply the TemplateContainerAttribute to the user control's class declaration.
Implement a property of type INamingContainer in the user control's code-behind class.
Implement a property of type ITemplate in the user control's code-behind class.
Define a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.
第1题:
You are developing a product search page named Search.aspx for Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer's Web browser. What should you do?()
第2题:
You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform? ()
第3题:
You are developing an ASP.NET Web page. The page includes a List
第4题:
You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.if (Page.User.Identity.Name != @"CONTOSO/Administrator") { the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
第5题:
You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()
第6题:
You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script. What should you recommend?()
第7题:
In the Web.config file, enable impersonation.
In IIS, enable anonymous access.
In IIS, disable anonymous access.
In the Web.config file, set the authentication mode to Windows.
第8题:
In the Web.config file, enable impersonation.
In IIS, enable anonymous access.
In IIS, disable anonymous access.
In the Web.config file, set the authentication mode to Windows.
第9题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
Add a DocumentViewer control to the design surface. The create a FixedDocument control.
第10题:
OnLoad
Construct
OnDataBinding
SaveControlState
第11题:
Create a single Web site that contains both Web applications.
Create two Web sites, one for each Web application.
Assign both Web applications to the same application pool.
Assign each Web application to its own application pool.
第12题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years. What will you do to accomplish this?()
第13题:
Your company has an internal Web application that uses a self-signed SSL certificate. The company has an internal certification authority (CA) with autoenrollment.When users attempt to start the Web application, Internet Explorer displays an error message that recommends closing the Web page rather than continuing to the application. You need to ensure that Internet Explorer does not display the error message. What should you do?()
第14题:
You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()
第15题:
You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?()
第16题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source. You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()
第17题:
You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes. When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes. You need to ensure that the changes you make are visible when you test the deployment from your machine. What should you do ?()
第18题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a DocumentViewer control to the design surface. Then create a FixedDocument control.
Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.
第19题:
IComparer<T>
IEnumerable<T>
IEnumerator<T>
IEqualityComparer<T>
第20题:
Add the ID attribute to the Label control.
Add the ID attribute to the TextBox control.
Use the Bind function for the Label control instead of the Eval function.
Use the Eval function for the TextBox control instead of the Bind function.
第21题:
Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.
Deploy the application in the Windows Azure Compute Emulator.
Deploy theapplication with a custom error page.
Deploy the application and then use IntelliTrace.
第22题:
Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.
Deploy the application in the Windows Azure Compute Emulator.
Deploy the application with a custom error page.
Deploy the application and then use IntelliTrace.