Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

JQuery doesnt work when i referened the file in masterpage by removing from content pages.

It only works fine when i seperately refernece to every page.

i have also tried referenced path using resolveurl("") but problem didnt solve.

Nested master pages are used.

Need help.

Thanks
Posted
Updated 16-Mar-12 13:58pm
v2

1 solution

Hello Mr.shan

YOu can try using this way

<script type="text/javascript" src="<%=Request.ApplicationPath%>/Contents/javascript/jquery/jquery-1.6.1.min.js"></script>


Where your "contents" is the folder where you kept all your script files

Hope This Will Help
 
Share this answer
 
Comments
[no name] 18-Mar-12 14:41pm    
Thanks , the jquery of page is working fine.
now i am facing another problem that there is jquery both in user control and web page.
jquery of web page works fine but i donot add any user control in it but when i add user control in web page , the jqery of web page donot work , but user control scripts are working fine , page scripts works fine also when theres no user control in it.
how i can solve this problem
Thanks
kishore sharma 27-Mar-12 9:28am    
Hello,
There u have to check that wether the plugins are repeated (in master page & user control page or web page) The plugins should not repeat.
Ex. if u added jquery.min.1.2.3.js in master page & this same u refered in user cotrol page or web page then it wil conflict(i am not much aware of user control page)
Please Mark As Answerded If IT Solve YOur query

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