单项选择题
A.protected void SelectedLanguageChanged(object sender, EventArgs e) {Page.UICulture = ddlLanguage.SelectedValue;}
B.protected override void InitializeCulture() {Page.UICulture = Request.Form["ddlLanguage"];}
C.protected void Page_Load(object sender, EventArgs e) {Page.Culture = Request.Form["ddlLanguage"];}
D.protected override void InitializeCulture() {Page.Culture = ddlLanguage.SelectedValue;}
单项选择题 You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment. You create a new ASP.NET page and specify Custom.master as its master page. You add a Label control named lblRegion to the new page. You need to display the value of the master page’s Region property in lblRegion. What should you do? ()
单项选择题 YouareimplementinganASP.NETapplicationthatincludesapagenamedTestPage.aspx.TestPage.aspxusesamasterpagenamedTestMaster.master.YouaddthefollowingcodetotheTestPage.aspxcode-behindfiletoreadaTestMaster.masterpublicpropertynamedCityName.protectedvoidPage_Load(objectsender,EventArgse){strings=Master.CityName;}YouneedtoensurethatTestPage.aspxcanaccesstheCityNameproperty.Whatshouldyoudo?()
单项选择题 YouaredevelopinganASP.NETWebpagethatcontainsinputcontrols,validationcontrols,andabuttonnamedbtnSubmit.Thepagehasthefollowingcode-behind.01PublicClass_Default02InheritsSystem.Web.UI.Page0304ProtectedSubSaveToDatabase()0506EndSub0708ProtectedSubbtnSubmit_Click(ByValsenderAsObject,09ByValeAsEventArgs)HandlesbtnSubmit.Click1011EndSub1213EndClassYouneedtoensurethatalldatathatissubmittedpassesvalidationbeforethedataissavedinadatabase.Whatshouldyoudo?()