YouworkasaWebApplicationDeveloperatCertkiller.com.Youmakeuseof.NETFrameworkv3.5tocreateanASP.NETapplication.
YoudecidetocreateaWebusercontrolnamedKingShare.KingShareiscompiledasalibrary.ThecodesegmentbelowiswrittenforKingShare.(Thelinenumbersisincludedforreference purposes)
1protectedoverridevoidOnInit(EventArgse)
2{
3base.OnInit(e);
4
5}
Themasterpagesintheapplicationcontainsthe%@MasterLanguage=C#
EnableViewState=false%directive.YoureceiveaninstructionfromthenetworkadministratortomakesurethattheKingSharestateisabletopersistonthepagesthatreferencethemasterpage.Youshouldthusidentifytheappropriatecodesegmentyouneedtoaddtoline4toachievethis.
Whatshouldyoudo?()
参考答案:B