单项选择题
You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()
A.Content
B.ContentPlaceHolder
C.PlaceHolder
D.Substitution
相关考题
-
单项选择题
YouareimplementinganASP.NETapplicationthatusesdata-boundGridViewcontrolsinmultiplepages.YouaddJavaScriptcodetoperiodicallyupdatespecifictypesofdataitemsintheseGridViewcontrols.YouneedtoensurethattheJavaScriptcodecanlocatetheHTMLelementscreatedforeachrowintheseGridViewcontrols,withoutneedingtobechangedifthecontrolsaremovedfromonepagetoanother.Whatshouldyoudo?()
A.Replace the GridView control with a ListView control.
B.Set the ClientIDMode attribute to Predictable in the web.config file.
C.Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
D.Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control. -
单项选择题
YouareimplementinganASP.NETWebsitethatwillbeaccessedbyaninternationalaudience.Thesitecontainsglobalandlocalresourcesfordisplayelementsthatmustbetranslatedintothelanguagethatisselectedbytheuser.YouneedtoensurethattheLabelcontrolnamedlblCompanydisplaystextintheusersselectedlanguagefromtheglobalresourcefile.Whichcontrolmarkupshouldyouuse?()
A.<asp:Label ID="lblCompany" runat="server" meta:resourcekey="lblCompany" />
B.<asp:Label ID="lblCompany" runat="server" Text="meta:lblCompany.Text" />
C.<asp:Label ID="lblCompany" runat="server" Text="<%$ Resources:lblCompanyText %>" />
D.<asp:Label ID="lblCompany" runat="server" Text="<%$ Resources:WebResources, lblCompanyText %>" /> -
单项选择题
YouhavecreatedanASP.NETservercontrolnamedShoppingCartforusebyotherdevelopers.SomedevelopersreportthattheShoppingCartcontroldoesnotfunctionproperlywithViewStatedisabled.YouwanttoensurethatallinstancesoftheShoppingCartcontrolworkevenifViewStateisdisabled.Whatshouldyoudo?()
A.Require developers to set EnableViewStateMac to true.
B.Store state in ControlState instead of ViewState.
C.Serialize the state into an Application state entry called "MyControl".
D.Require developers to change the session state mode to SQLServer.
