作业帮 > 微软认证(MCSE) > 教育资讯

2013微软认证考试练习题及答案(17)[1]

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 18:51:56 微软认证(MCSE)
2013微软认证考试练习题及答案(17)[1]
2013微软认证考试练习题及答案(17)[1]微软认证(MCSE)
【网络综合 - 微软认证(MCSE)试题】
无忧考网为大家收集整理了《2013微软认证考试练习题及答案(17)》供大家参考,希望对大家有所帮助!!!

QUESTION 1 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. (Line numbers are included for reference only.) 01 02 03 04 05 DataSourceID="SqlDataSource1" 06 07 > 08 09 10 11 Text=’’ /> 12 13 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? .Insert the following code segment at line 06. OnItemDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr (object sender, ListViewItemEventArgs e) { Label LineTotal = (Label) e.Item.FindControl("LineTotalLabel"); if ( LineTotal.Text.Length > 7) { LineTotal.ForeColor = Color.Red; } else { LineTotal.ForeColor = Color.Black; } } B.Insert the following code segment at line 06. OnItemDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr (object sender, ListViewItemEventArgs e) { Label LineTotal = (Label) e.Item.FindControl("LineTotal"); if ( LineTotal.Text.Length > 7) {LineTotal.ForeColor = Color.Red; } else {LineTotal.ForeColor = Color.Black; } } C.Insert the following code segment at line 06. OnDataBinding="FmtClr" Insert the following code segment at line 02. protected void FmtClr(object sender, EventArgs e) { Label LineTotal = new Label(); LineTotal.ID = "LineTotal"; if ( LineTotal.Text.Length > 7) {LineTotal.ForeColor = Color.Red; } else { LineTotal.ForeColor = Color.Black; } } D.Insert the following code segment at line 06. OnDataBound="FmtClr" Insert the following code segment at line 02. protected void FmtClr(o微软认证(MCSE)