请问为什么我在updatepanel 中使用gridview,运行后浏览器状态栏显示脚本错误!!!
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="loupanid" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="districtname" HeaderText="districtname" SortExpression="districtname" />
<asp:BoundField DataField="loupanid" HeaderText="loupanid" InsertVisible="False"
ReadOnly="True" SortExpression="loupanid" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dengpanConnectionString %>"
SelectCommand="SELECT [districtname], [loupanid] FROM [loupan]"></asp:SqlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
运行后浏览器状态栏显示脚本错误!!!,点开后显示“错误‘Sys未定义’”,updatepanel也没有起作用。不知道是怎么回事!!