what is difference if we write script manager with end tag and script manager as a empty tag in this format :
<asp:ScriptManager runat="server">
</asp:ScriptManager>
and script manager as a empty tag.
<asp:ScriptManager runat="server"/>
I found this question in some interview question’s book.. plez give me some knowledge about it or give me any link..
If you don’t need to insert any javascript, then using the empty tag uses less bytes since it’s a shorter way to do the same thing.
If you do need to add some javascript, then you’ll have to use the ‘end tag’ version, since that’s the only way to put script inside… between the opening and closing tags. eg:
I tend to use the ’empty’ tag version myself, I think it looks a bit neater and clutters up the source less.
See this: http://www.wrox.com/WileyCDA/Section/Using-the-ASP-NET-AJAX-ScriptManager.id-305492.html for more details.
HTH,
Lance