Microsoft
70-515 · Question #157
You are implementing an ASP.NET Web application that retrieves data from a Microsoft SQL Server database. You add a page that includes the following data source control. <asp:SqlDataSource…
The correct answer is A. Add the following attributes to the SqlDataSource control. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET Web application that retrieves data from a Microsoft SQL Server database. You add a page that includes the following data source control. <asp:SqlDataSource id="sqlds" runat="server" ConnectionString="<%$ ConnectionStrings:MyDB %>" SelectCommand="SELECT * FROM Companies" /> The page is accessed frequently, but the data in the database rarely changes. You need to cache the retrieved data so that the database is not queried each time the Web page is accessed. What should you do?
Options
- AAdd the following attributes to the SqlDataSource control.
- BAdd the following attributes to the SqlDataSource control.
- CAdd the following configuration to the <system.web/> section of the web.config file.
- DAdd the following configuration to the <system.web/> section of the web.config file.
How the community answered
(57 responses)- A72% (41)
- B4% (2)
- C9% (5)
- D16% (9)
Community Discussion
No community discussion yet for this question.