Which markup should you use?

You are developing an ASP.NET Web page.
The page uses the MicrosoftAjax.js script file and the MicrosoftAjaxWebForms.js script file.
You need to ensure that both scripts are combined into a single script.
Which markup should you use?

You are developing an ASP.NET Web page.
The page uses the MicrosoftAjax.js script file and the MicrosoftAjaxWebForms.js script file.
You need to ensure that both scripts are combined into a single script.
Which markup should you use?

A.
<asp:ScriptManager ID=”sm1″ runat=”server”>
<CompositeScript>
<Scripts>
<asp:ScriptReference Name=”MicrosoftAjax.js” />
<asp:ScriptReference Name=”MicrosoftAjaxWebForms.js” />
</Scripts>
</CompositeScript>
</asp:ScriptManager>

B.
<asp:ScriptManager ID=”sm1″ runat=”server”>
<CompositeScript ScriptMode=”Auto”>
<Scripts>
<asp:ScriptReference Name=”MicrosoftAjax.js” />
<asp:ScriptReference Name=”MicrosoftAjaxWebForms.js” />
</Scripts>
</CompositeScript>
</asp:ScriptManager>

C.
<asp:ScriptManager ID=”sm1″ runat=”server”>
<CompositeScript ScriptMode=”Release”>
<Scripts>
<asp:ScriptReference Name=”MicrosoftAjax.js” />
<asp:ScriptReference Name=”MicrosoftAjaxWebForms.js” />
</Scripts>
</CompositeScript>
</asp:ScriptManager>

D.
<asp:ScriptManager ID=”sm1″ runat=”server”>
<Scripts>
<asp:ScriptReference Name=”MicrosoftAjax.js” />
<asp:ScriptReference Name=”MicrosoftAjaxWebForms.js” />
</Scripts>
</asp:ScriptManager>



Leave a Reply 0

Your email address will not be published. Required fields are marked *