网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()

A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}

B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}

C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}

D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}}


参考答案

更多 “ YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}} ” 相关考题
考题 将每个用户的数据和其他用户的数据隔离开,是考虑了软件的()质量特性。 A.功能性B.可靠性C.可维护性D.易使用性

考题 列车晚点需向旅客免费提供饮食品时,应急饮食品应以干点为主,每份应急饮食品(含矿泉水)供应价格标准为()。 A.5元B.10元C.15元D.20元

考题 电动汽车动力电池作用相当于燃油汽车中的发动机。() 此题为判断题(对,错)。

考题 计算机只要有显示卡,显示器就能正常工作。() A.错误B.正确

考题 LTE系统要求上行同步的系统,上行同步主要是为了消除小区内不同用户之间的干扰。 A.错误B.正确

考题 下面哪个是安全的基本要求是?() A.单一性B.多重性C.可用性D.独立性

考题 每年进行()次以上的应急预案演练,加强对应急预案的熟悉。 A.错误B.正确

考题 0MC一R的Solaris系统包括(). A.数据库服务器B.应用服务器C.FTP服务器D.以上都不对