单项选择题
You need to ensure that when the button is clicked, both update panels update the tim without generating a postback. What should you do?()
A.Add the following marktip to UpdatePanel1. <Triggers> <asp:PostBackTrigger ControlID="btnSave" /> </Triggers>
B.Set the UpdateMode property for the UpdatePanel2 to "Always"
C.Add the following markup to UpdatePanel2 <Triggers> <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" /> </Triggers>
D.Set the UpdateMode property for UpdatePanel2 to "Conditional"
相关考题
-
单项选择题
YouaredebugginganASP.NETWebapplicationbyusingtheVisualStudiodebugger.TheapplicationisincorrectlyhandlingaSQLExceptionontheloginpage.Youneedtobreakexecutionwheretheexceptionisthrown.Whatshouldyoudo?()
A.Enable the User-unhandled option for SqlException in Visual Studio Exception configuration.
B.Set the value of the customErrors element‟s mode attribute to “on” in the web.config file.
C.Manually attach the Visual Studio debugger to Internet Explorer.
D.Enable the thrown option for SqlException in Visual Studio exception configuration. -
单项选择题
YouareimplementinganASP.NETWebpage.Thepageincludesseveralcontrols,butonlyaGridViewrequiresviewstate.YousettheGridView…Youneedtoensurethatthepagewillomitunneededviewstate.Wich@Pagedirectiveshouldyouuse?()
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.
