Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
CSS
Hi I am using signalR with ASP dot net web form. For ordinary page its working fine. But for master page inherited page, in the line

var chatHub = $.connection.clientUpdateHub;

$.connection is undefined. The point is, When I see the $ , its showing that "the jquery object is actually just the init constructor 'enhanced'" I can not understand this. please help me how to avoid this.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Oct-13 11:27am    
Who told you all that? "Just the..."? $() is a function, it does what it does. What's the problem, exactly?
—SA

1 solution

Hi I added jquery reference like this

<asp:ScriptManager runat="server">
<Scripts>
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
</Scripts>
</asp:ScriptManager>

in master page and

<script type="text/javascript" src="<%: ResolveUrl("~/Scripts/jquery-2.0.3.min.js") %>"></script>

in content pace. So it causes the problem. After removing jquery reference in script manager it works fine for me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900