搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

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();}

更多“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?()”相关的问题
第1题

A、Specify Marketing.Testking.com and Sales.Testking.com as the host header names for the two new Web sites.  B、For each new Web site, create a file named Default.htm in the directory path.  C、For each new Web site, specify a unique TCP port. Ensure that all client computers use the appropriate port to connect to each site,  D、For all Web sites, create custom HTTP headers.  E、For all Web sites, specify unique IP addresses. Modify the appropriate host records on the DNS server.  F、For all Web sites, enable anonymous access.  

点击查看答案
第2题

A、Configure a GlobalNames zone and add a Host (A) resource record for Web1.  B、Create an Alias (CNAME) resource record for Web1 in the forest root domain zone.  C、Create a reverse lookup zone and add an Alias (CNAME) resource record for Web1.  D、Create a Host Information (HINFO) resource record for Web1 in the forest root domain zone.  

点击查看答案
第3题

AA. Ensure that the Web control inherits from the WebControl class.  B、B. Ensure that the Web control inherits from the Control class.  C、C. Ensure that the Web control inherits from the CompositeControl class.  D、D. Ensure that the Web control inherits from the UserControl class.  

点击查看答案
第6题

ACreate a control that derives from System.Web.UI.Control.  B、Create a control that derives from System.Web.UI.WebControls.CompositeControl.  C、Create a control that derives from System.Web.UI.WebControls.WebControl.  D、Create a control that derives from System.Web.UI.UserControl.  

点击查看答案
第7题

ACreate a control that derives from System.Web.UI.Control.  B、Create a control that derives from System.Web.UI.WebControls.CompositeControl.  C、Create a control that derives from System.Web.UI.WebControls.WebControl.  D、Create a control that derives from System.Web.UI.UserControl.  

点击查看答案
第8题

ACreate a control that derives from System.Web.UI.Control.  B、Create a control that derives from System.Web.UI.WebControls.CompositeControl.  C、Create a control that derives from System.Web.UI.WebControls.WebControl.  D、Create a control that derives from System.Web.UI.UserControl.  

点击查看答案
第10题

A、Modify the connection string in the Web.config file to connect to the CRM database.  B、Add new a SqlMembershipProvider to the Web.config file.  C、Create a custom Membership Provider inheriting from MembershipProvider.  D、Create a custom MembershipUser inheriting from MembershipUser.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服