You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should add an event handler to?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has an ASPX page named ErrorPage.aspx. You plan to manage the unhandled application exceptions. You need to perform the following tasks: ¡;¤Display the ErrorPage.aspx page ¡;¤Write the exceptioninformation in the Event log file. Which two actions should you perform? ()
You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master.You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadDim s As String = Master.CityNameEnd Sub You need to ensure that TestPage.aspx can access the CityName property. What should you do?()
You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. What should you do?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a class that contains the following code segment. (Line numbers are included for reference only.) 01 Public Function GetCachedProducts( _ ByVal conn As SqlConnection) As Object 02 03 If Cache("products") Is Nothing Then 04 Dim cmd As New SqlCommand("SELECT * FROM Products", conn) 05 conn.Open( ) 06 Cache.Insert("products", GetData(cmd)) 07 conn.Close( ) 08 End If 09 Return Cache("products") 10 End Function 11 12 Public Function GetData(ByVal prodCmd As SqlCommand) As Object 13 14 End Function Each time a Web form has to access a list of products, the GetCachedProducts method is called to provide this list from the Cache object. You need to ensure that the list of products is always available in the Cache object. Which code segment should you insert at line 13?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You define the following class. public class Product { public decimal Price { get; set; } } Your application contains a Web form with a Label control named lblPrice. You use a StringReader variable named xmlStream to access the following XML fragment. You need to display the price of the product from the XML fragment in the lblPrice Label control. Which code segment should you use?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. ou create a FormView control to access the results of a query. The query contains the following fields: EmployeID 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?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a page that contains the following code fragment. | English | Chinese | Japan | Korean | - 92 - Test Information Co., Ltd. All rights reserved. You write the following code segment in the code-behind file for the page. void BindData(object sender, EventArgs e) { lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures); lstLanguages.DataTextField = "EnglishName"; lstLanguages.DataBind(); } You need to ensure that the lstLanguages ListBox control maintains the selection of the user during postback. Which line of code should you insert in the constructor of the page?()
You are implementing an ASP.NET page in an e-commerce application. Code in abtnAddToCart_Click event handler adds a product to the shopping cart. The page should check the status of the shopping cart and always show a cart icon when one or more items are in the shopping cart. The page should hide the icon when the shopping cart has no items. You need to add an event handler to implement this requirement. Which event handler should you add?()
You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. You add the following code fragment to an AJAX-enabled Web form. (Line numbers are included for reference only.) 01 02 04 05 06 08 | English | Chinese | Japan | Korean | - 143 - Test Information Co., Ltd. All rights reserved. 09 12 13 14 15 16 17 The tmrTimer_Tick event handler sets the Text property of the lblTime Label control to the current time of the server. You need to configure the appropriate UpdatePanel control to ensure that the lblTime Label Control is properly updated by the tmrTimer Timer control. What should you do?()