常量中有换行符
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EventLedger.aspx.cs" Inherits="EventLedger" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderMenu2" runat="Server">
<div style="clear: both; text-align: center;">
<a href="EventManagement.aspx">大事记录入</a>
<a href="EventLedger.aspx">大事记台账</a> </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderMenu3" runat="Server">
<div class="templatemo_link_box" style="width: 144px">`
<div class="subtitle" style="margin: 5px 0px; padding: 0px;">
大事记台账</div>
</div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderPageContent" runat="Server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
DataSourceID="SqlDataSource1" OnRowDeleting="GDelete" Width="893px">
<Columns>
<asp:BoundField DataField="ID" HeaderText="序号" InsertVisible="False" ReadOnly="True"
SortExpression="ID" />
<asp:BoundField DataField="Num" HeaderText="大事记编号" SortExpression="Num" />
<asp:TemplateField HeaderText="大事记标题" SortExpression="title" >
<ItemTemplate>
<a href='EventManagementView.aspx?ID=<%#Eval(ID")%>'>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("title") %>'></asp:Label>
</a>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Recorder" HeaderText="记录人" SortExpression="Recorder" />
<asp:BoundField DataField="RecordTime" HeaderText="记录时间" SortExpression="RecordTime" />
<asp:CommandField HeaderText="操作" ShowDeleteButton="true" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:鹦鹉洲大桥信息管理系统ConnectionString8 %>"
SelectCommand="SELECT [ID], [Num], [Title], [Recorder], [RecordTime] FROM [LargeNotepad]" DeleteCommand="delete from ProjectMeasure where ID=@ID">
</asp:SqlDataSource>
</asp:Content>
常量中有换行符 是怎么回事?
------解决方案--------------------
这现在看不出来,你新建个页面 把代码一部分一部分的粘贴过去 看看错误是什么造成的