单项选择题

你正在开发一个 Web 应用。这个 Web 应用使用 GridView 控件去显示数据。现在,你可以增加一个 Web 窗体,然后通过拖放在服务资源管理器的数据连接树上的表到这个 Web 窗体上来进行数据的显示。为此,你需要使用如下图的增加连接对话框创建一个数据连接。在整个处理的过程中,你需要为你的数据源配置数据提供程序;请问,你应该怎么做?()

A. 在连接上点击右键,然后单击属性,修改数据连接的数据提供程序属性。
B. 单击“更改”按钮,然后为选择的数据源改变数据提供程序。
C. 单击“高级”按钮,然后改变Data Source属性值为目标提供着。
D. 单击“高级”按钮,然后改变 Application Name 属性值为目标提供着。


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题

你正在读入一个名为 doc 的 XML 文档,其内容如下()
 

A. foreach (XmlNode node in nodes){ node.Attributes[0].Value = “NA”;}
B. foreach (XmlNode node in nodes){ node.Attributes[1].Value = “NA”;}
C. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“/genre”); genre.Value = “NA”;}
D. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“@genre”); genre.Value = “NA”;}
E. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“genre”); genre.Value = “NA”;}

2.单项选择题你正在创建一个处理 XML 文档的 Web 应用。这个 Web 应用实现从不同的源接收 XML 文档,然后读取文档并把它存储到 SQL SERVER 数据库中。已知,Web 应用会分析所有传入的文件,看他们是否符合某个 XML 架构。为此,你需要找到 XML 文档中所有的验证错误,你应该怎么做?()

A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。
B.为XmlReader对象的XmlReaderSettings设置ValidationEventHandler;
C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;
D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。

3.单项选择题当 Web 应用关闭后,你需要人工释放资源。为此,你应该响应哪一个事件?()

A.Application_BeginRequest
B.Application_End
C. Application_Start
D.Application_EndRequest

4.多项选择题你如何重定向一个指定页面到桌面计算机或移动设备?()

A.if (Request.Browser["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
B.if (Request.Cookies.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
C.if (Request.Browser.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
D.if (Request.Cookies["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if


6.多项选择题下面哪一些ASP.NET控件在mobile设备上和标准控件提供了相似的功能?()

A.LinkButton
B.Label
C.RadioButton
D.Table
E.Button

7.单项选择题默认情况下,在 Microsoft Windows XP 系统上,IIS 通过匿名用户请求资源的时候,ASP.NET 使用什么安全上下文?()

A.Guest 账号
B.Network Service 账号
C.请求 Web 页的账号
D.ASP.NET 账号

10.单项选择题你正在创建一个自定义服务器控件,并且你需要此控件支持在Visual Studio 2005设计器中使用。为此,你创建了两个类:一个是从Composite Control继承的myControl类,另一个是从Composite ControlDesigner继承的myControlDesigner类。你需要把myControl和myControlDesigner进行关联。下面那一个可以正确达到此目的?()

A.[Designer(myControlDesigner)] public class myControl: CompositeControl
B.[Designer(typeof(myControl))] public class myControlDesigner: CompositeControlDesigner
C.[Designer(myControl)] public class myControlDesigner: CompositeControlDesigner
D.[Designer(typeof(myControlDesigner))] public class myControl: CompositeControl

最新试题

You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class.Which form of authentication should you use?()

题型:单项选择题

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.Which two actions should you perform?()

题型:多项选择题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题

ou are developing a chat forum for the Certkiller .com Web site. You are using ASP.NET 2.0 to develop the chat forum. You are developing a Web Form that allows a subscriber to alter enter their account details. The page contains the following code snippet.You need to programmatically hide the TextBox control based on other input.What should you do?()

题型:单项选择题

You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file.? You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords.Which code logic should you use?()

题型:单项选择题

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 create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.Which tool should you use? ()

题型:单项选择题

You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()

题型:多项选择题

You create a Web application for your company's intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments should you use?()

题型:多项选择题