可学答题网 > 问答 > MCTS(70-528)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You create a Web Form. The Web Form al


You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use?()

  • A protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}
  • B protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}
  • C protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}
  • D protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}
参考答案
参考解析:
分类:MCTS(70-528)题库
相关推荐

1、You create a Web Form. The Web Form u

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the...

2、You create a Web Form that contains a

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web...

3、You are creating a Web Form. The Web

You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that...

4、You are creating a Web Form. The Web

You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that...

5、You create a Web Form. The Web Form al

You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1...

6、You are creating a Web Form. You write

You are creating a Web Form. You write the following code segment to create a SqlCommand object.Dim conn As SqlConnection = New SqlConnection(c...