单项选择题
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()
A. Set Page.MasterPageFile in the Page's Page_Init event.
B. Set Page.MasterPageFile in the Page's OnInit override.
C. Set Page.MasterPageFile in the Page's Page_Load event.
D. Set Page.MasterPageFile in the Page's Page_PreInit event.
点击查看答案
相关考题
-
单项选择题
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
A.SetPage.MasterPageFile in the Page’sPage_Initevent.
B.SetPage.MasterPageFile in the Page’sOnInit event.
C.SetPage.MasterPageFile in the Page’sPage_Loadevent.
D.SetPage.MasterPageFile in the Page’sPage_PreInitevent. -
单项选择题
You create a master page named PageBase.master. The master page contains a Label control named lblTitle. You create a content page that references the master page. You need to change the Text property of the master pages lblTitle control from the content page. Which code segment should you use?()
A.
B.
C.
D. -
单项选择题
You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously. Dim ar As IAsyncResult = cmd.BeginExecuteReader() You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing. Which code segment should you use?()
A.
B.
C.
D.
