工作當我運行下面的代碼,我得到的錯誤意外字符「$」Jquery的不是母版頁
它運行成功地當我indvidually運行,但是當我通過母版頁運行它does not。這裏是我的母版頁代碼:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs"
Inherits="SwordBugTrackingSystem.SiteMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Scripts/jquery-1.3.2.min.js" runat="server">
</script>
<script type="text/javascript" src="/Scripts/cal.js" runat="server" ></script>
<script type="text/javascript">
jQuery(document).ready(function() {
$('input.one').simpleDatepicker();
});
</script>
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
這是我的aspx頁面:
<%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master"
AutoEventWireup="true" CodeBehind="About.aspx.cs"
Inherits="SwordBugTrackingSystem.About" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
About
</h2>
<p>Some test inputs, each with a different setup:</p>
<p><input class="one" type="text" name="date" value="" runat="server"/>
</asp:Content>
謝謝。這工作:) –