Add js reference in the masterpage if your js file is needed in all the content page. If there is some js file specific to a content page, then place it in content page only.
While adding script block in the page(content page or master page), if your code is inside $(document).ready, then it does not matter where you are placing the code. Its upto your convinient. If your code is outeside of $(document).ready, then place the
code block after the control to which the code is meant for.
Thanks & Regards
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
asteranup
All-Star
30184 Points
4906 Posts
Re: How and where to call a jquery method in a form binded with master page?
Nov 14, 2011 08:18 AM|LINK
Hi,
Add js reference in the masterpage if your js file is needed in all the content page. If there is some js file specific to a content page, then place it in content page only.
While adding script block in the page(content page or master page), if your code is inside $(document).ready, then it does not matter where you are placing the code. Its upto your convinient. If your code is outeside of $(document).ready, then place the code block after the control to which the code is meant for.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog