/ Published in: ASP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
When adding JavaScript files to an ASP.NET page, always use asp:ScriptManager. Instead of this: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript" src="~/App_Atom/ux/js/IframeOnClick.js"></script> <script type="text/javascript" src="~/App_Atom/ux/js/common.js"></script> Do this: <asp:ScriptManager runat="server"> <Scripts> <asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" /> <asp:ScriptReference Path="~/App_Atom/ux/js/IframeOnClick.js" /> <asp:ScriptReference Path="~/App_Atom/ux/js/common.js" /> </Scripts> </asp:ScriptManager> btw asp:ScriptManager goes in the MasterPage. If it's a sub-page then use asp:ScriptManagerProxy.