单项选择题
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?()
A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>
点击查看答案
相关考题
-
单项选择题
YoudevelopanASP.NETWebpagethatincludesmultipleWebPartZonecontrols,anEditorZone.UsersreportthattheycannotcustomizethelayoutofthepagebymovingWebPartsfromone.YouneedtoensurethatuserscansuccessfullymoveWebPartsfromonezonetoanother.Whatshouldyoudo?()
A.Configure the Web site to enable session state.
B.Configure the Web site to require authentication and to use personalization.
C.Add a ProxyWebPartManager control to the page.
D.Add a AppearanceEditorPart control to the page. -
单项选择题
ouaredevelopinganASP.NETMVC2application.Youcreateaviewthatwillbereturnedbyactionmethodsinmultiplecontrollers.Youneedtoplacetheviewintheappropriatefolder.TowhichsubfolderwithintheViewsfoldershouldyouaddtheview?()
A.Master
B.Default
C.Shared
D.Common -
单项选择题
Youhavetostoreuserdataof200KBinanobject.Whichstatemanagementtechniquetouse:()
A.Server session
B.Cookie
C.ViewState
D.Hidden Field
