单项选择题下面那个代码段正确的处理了用于验证日期输入可以被转化为DateTime对象的CustomValidator控件的ServerValidate事件?()

A.
B.
C.


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

参考如下的 Web.Config 文件配置。请问,ASP.NET 会把没有验证的用户重定向到什么页面?()

A.Forms.aspx
B.LoginForm.aspx
C.ASP.NET will not redirect the user. Users will need to click a LoginStatus control to be redirected to the login page.
D.Login.aspx





6.多项选择题你将为 Web 应用创建一个控件 ContosoUI。你需要增加这个控件到 Microsoft Visual Studio .NET 的工具栏中,你应该通过下面那两个操作完成?()

A.创建ContosoUI控件为Web控件库。
B.创建ContosoUI控件为Web用户控件。
C.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.ascx。
D.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.dll。

7.单项选择题你在开发一个Web控件。这个Web控件由label控件和相关联的文本框控件组成。你需要报证Web控件能够放入Visual Studio工具栏并且能够可视化的设计,你应该如何做?()

A.为你的解决方案增加一个Web控件库项目;定义一个从CompositeControl继承的类。
B.为你的解决方案增加一个Windows控件库项目;定义一个从UserControl继承的类。
C.为你的解决方案增加一个Web用户控件项目;定义一个从UserControl继承的类。
D.为你的解决方案增加一个移动Web用户控件项目;定义一个从MobileUserControl继承的类。

8.多项选择题你创建了一个 Web 应用。你需要对一个运行不是很好的页面进行跟踪。而且你必须把跟踪信息存储在一个数据库中。为此,你应该通过下面那两个步骤完成?()

A.为Trace.TraceFinished事件增加跟踪内容事件处理程序,并且把跟踪信息记录到数据库中。
B.在Web.config文件中增加system.diagnostics配置节,然后在新的节增加一个listener。
C.使用System.Diagnostics.Trace对象连接到数据库,并且插入跟踪记录到数据库。
D.在Page_Load事件中,使用Trace.Write插入信息到数据库。

9.单项选择题你正在部署一个公司的Internet Web站点。你需要拒绝匿名用户访问,并且只允许已验证的用户访问。你应该使用下面那个代码段?()

A. <authorization> <allow users="?"/> </authorization>
B. <authorization> <deny users="?"/> </authorization>
C. <authorization> <deny users="*"/></authorization>
D. <authorization> <allow users="*"/> </authorization>

10.单项选择题你正在开发一个 Web 应用。依据用户身份的不同,你在代码中限制了某些用户对某些页面的访问。你需要配置 IIS,让你的 Web 应用支持 Windows 身份认证,你应该如何做?()

A.启用匿名身份认证和集成Windows身份认证。
B.启用匿名身份认证。启用基本身份认证。
C.禁用匿名身份认证;启用集成Windows身份认证。
D.禁用匿名身份认证;启用基本身份认证.

最新试题

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.What should you do? ()

题型:单项选择题

You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customer's payment and calls an external Web service that charges the customer's credit card. You must implement confirmation and prevent postback unless the customer confirms payment.What should you do?()

题型:单项选择题

You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.Which two actions should you perform?()

题型:多项选择题

You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site.Which tool should you use?()

题型:单项选择题

You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.Which event should you use? ()

题型:单项选择题

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file.Which code segment should you add to the Page_Load event?()

题型:单项选择题

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.Which two actions should you perform?()

题型:多项选择题

You are developing a Web application. Your code restricts access to some pages based on the users credentials. You need to configure IIS to supply the user's Windows credentials to your Web application. These credentials must be encrypted.What should you do? ()

题型:单项选择题

Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages.What should you do?()

题型:多项选择题

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?()

题型:单项选择题