单项选择题
You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to?()
A.Init
B.Load
C.PreInit
D.PreLoad
相关考题
-
单项选择题
YouaredevelopinganASP.NETWebapplication.Youcreateamasterpage.Themasterpagerequiresaregionwhereyoucanaddpage-specificcontentbyusingtheASP.NETpagedesigner.Youneedtoaddacontroltothemasterpagetodefinetheregion.Whichcontrolshouldyouadd?()
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 %>" />
