单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page that contains the following two XML fragments: 01 <script runat="server"> 02 03 </script> 04 <asp:ListView ID="ListView1" runat="server" 05 DataSourceID="SqlDataSource1" 06 07 > 08 <ItemTemplate> 09 <td> 10 <asp:Label ID="LineTotalLabel" runat="server" 11 Text=’<%# Eval("LineTotal") %>’ /> 12 </td> 13 </ItemTemplate> The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal. You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color. What should you do?()
单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You derive a new validation control from the BaseValidator class. The validation logic for the control is implemented in the Validate method in the following manner: protected static bool Validate(string value) { // ... } You need to override the method that validates the value of the related control. Which override method should you use?()
单项选择题 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 use?()