You are creating an application page that will open a dialog box. The application page uses a
custom master page. You write the following code segment. (Line numbers are included for
reference only.) 01 < script type=”text/javascript” > 02 function DialogCallback ( dialogResult,
retumValue ){> 03 function OpenEditDialog (id){ 04 var options = { url:” http://intranet/Jayouts
/MsgToShow.aspx, width: 300, 05 height: 300, 06 dialogReturnValueCallback : DialogCallback 07
}; 08 SP.UI.ModalDialog.showModalDialog (options); 09 } 10 < /script > You need to ensure that
the code opens the dialog box. What should you do?
A.
Add a script link that references SP.js .
B.
At line 08, change showModalDialog to commonModalDialogOpen.
C.
At line 08, change showModalDialog to openDialog.
D.
Add a script link that references SharePoint.Dialog,js .