Microsoft
70-515 · Question #190
You are implementing an ASP.NET Web page The page includes several controls, but only a GridView requires view state. You set the GridView... You need to ensure that the page will omit unneeded view…
The correct answer is B. <% Page EnableViewState="true" ViewStateMode="Disabled" _ %>. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET Web page The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?
Options
- A<% Page EnableViewState="true" ViewStateMode="Enabled" _ %>
- B<% Page EnableViewState="true" ViewStateMode="Disabled" _ %>
- C<% Page EnableViewState="false" ViewStateMode="Disabled" _ %>
- D<% Page EnableViewState="false" ViewStateMode="Enabled" _ %>
How the community answered
(26 responses)- A8% (2)
- B77% (20)
- C12% (3)
- D4% (1)
Community Discussion
No community discussion yet for this question.