A. 确保完成执行后调用每个连接对象的Close方法。
B. 确保完成执行后每个连接对象保持打开状态。
C. 在连接字符串内增加Max Pool Size的值。
D. 在连接字符串内增加Min Pool Size的值。
E. 在连接字符串内增加Connection Lifetime的值。
F. 增加SqlConnection对象的ConnectionTimeout属性的值。
您可能感兴趣的试卷
你可能感兴趣的试题
A.
B.
C.
D.
A. while (ar.AsyncWaitHandle == null) { DoWork();}dr = cmd.EndExecuteReader(ar);
B. while (!ar.IsCompleted) { DoWork();}dr = cmd.EndExecuteReader(ar);
C. while (Thread.CurrentThread.ThreadState == ThreadState.Running) { Do Work();}dr =cmd.EndExecuteReader(ar);
D. while (!ar.AsyncWaitHandle.WaitOne()) { DoWork();}dr = cmd.EndExecuteReader(ar);
A. 通过使用带有XmlReaderSettings 参数的XmlReader 的Create方法创建一个XmlReader 实例。
B. 使用XmlTextReader 参数创建一个XmlReader 实例。
C. 创建一个XmlDocument 实例并且指定架构的位置。
D. 使用XmlNodeReader参数创建一个XmlReader 实例。
A. 保证源数据库是Microsoft SQL Server.
B. 保证目标数据库是 Microsoft SQL Server.
C.确保源表和目的表的列名称相同。
D.确保在目标机器上安装有bcp工具。
你正在创建一个 Web 窗体。这个 Web 窗体允许用户对列表中的产品进行改名或删除。你创建了一个绑定到 GridView 的 DataTable 对象 dtProducts。其中 DataTable 有如下 4 行数据:
用户使用Web窗体删除了第一个产品。你需要设置DataTable的DefaultView 的RowStateFilter属性,使GridView控件不显示被删除的产品。请问,你该如何设置RowStateFilter的值?()
A. Data ViewRowState.ModifiedOriginal;
B. Data ViewRowState.ModifiedCurrent;
C. Data ViewRowState.CurrentRows;
D. Data ViewRowState.Added;
你正在使用如下的代码段去创建一个 DataTable:(行号只作为标识)
你需要确保当新的行被增加或修改时Total列的值为Price列乘以Quantity列的值。你该如何做?()
A. 在05行后增加dc.ExtendedProperties["Total"] = "Price *Quantity”;
B. 在05行后增加dc.Expression = “Prince * Quantity”;
C. 为DataTable的TableNewRow 写事件处理代码来更新Total 的值。
D. 为DataTable的ColumnChanged写事件处理代码来更新Total 的值。
你正在装载一个名为 doc 的 XML 文档。文档内容如下:你需要使用Xpath查询去选择book节点,你该如何做?()
A. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”);
B. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”);
C. XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“bookstore//book”);
D. XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“books/book”);
A.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true;
B.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Controls.Add(form1);
C.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Add(form1);
D.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; form1.Controls.Add(c);
A. Label lblTitle = (Label)Master.FindControl(“lblTitle”);lblTitle.Text = “Articles”;
B. Label lblTitle = (Label)Parent.FindControl(“lblTitle”);lblTitle.Text = “Articles”;
C. Master.Page.Title = “Articles”;
D. ((Label)Page.FindControl(“lblTitle”)).Text = “Articles”;
A. BehaviorEditorPart
B. AppearanceEditorPart
C. PropertyGridEditorPart
D. LayoutEditorPart
最新试题
You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page.What are two possible ways to achieve this goal? ()
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 deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()
You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site.What should you do? ()
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?()
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 are developing a page named Products.aspx in a Web application that contains three DropDownList controls that are dynamically loaded from a SQL Server 2005 database file. The DropDownList controls represent a vendor list, a certification list, and an exam list. Certkiller .com customers use the Products.aspx page to select exams related to particular certifications on offer from a particular vendor. A Go button initiates the selection. Each DropDownList control has an associated RequiredFieldValidator control.Whenever the customer selects a vendor, and the vendor offers certifications, then the customer must also select a certification if the. If the vendor only offers exams and not certifications, the certification list should remain hidden. Whenever the customer selects a certification, the customer must also select an exam. Validation error messages should only be displayed when the Go button is clicked. You need to set properties on the vendor DropDownList control.What should you do?()
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?()
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 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?()