ASP.NET - Use of jquery in masterpage - Asked By Nitish Gupta on 13-Sep-12 07:27 AM
I am using jquery with masterpage in asp.net 4. but it is not calling properly. It is nicely working in simple webform but when we use jquery with child element it is not working.
Robbe Morris replied to Nitish Gupta on 13-Sep-12 08:19 AM
You are going to have to post some of the relevant code. No one can help you without it.
Hemanth Kumar replied to Nitish Gupta on 13-Sep-12 08:21 AM
When you use the Master and Child Page Concept.You need to define the jQuery library in the Master Page and directly write the code in the Child Pages.
Can you please elobrate your problem?
Nitish Gupta replied to Robbe Morris on 13-Sep-12 09:05 AM
this code i placed in masterpage
<link rel="stylesheet" type="text/css" href="formwizard.css" />
<asp:ContentPlaceHolder id="head" runat="server">
and below code is placed in content page.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
<asp:ScriptReference Path="formwizard.js" />
<asp:ScriptReference Path="JScript.js" />
<form id="feedbackform" action="">
It is showing "Jquery Undefined" Error...Tell me correct way to use jquery with masterpage
Robbe Morris replied to Nitish Gupta on 13-Sep-12 09:33 AM
Try this instead and see if it helps.
Jitendra Faye replied to Nitish Gupta on 14-Sep-12 12:13 AM
Yes this is because of path of jquery files, first check that the path which you are giving to add jquery files that should be valid.