警告 165 无法识别的命名空间“asp”。

HM623933 2012-05-16 10:07:42
使用了母板页,但是content中的内容不能识别asp是什么原因?
...全文
200 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
HM623933 2012-05-16
  • 打赏
  • 举报
回复
页面代码如下:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="装备列表.aspx.cs" Inherits="装备列表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>



<br />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" CellSpacing="1"
GridLines="None" PageSize="20" Font-Size="12px"
AutoGenerateColumns="False"
OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
onpageindexchanging="GridView1_PageIndexChanging" AllowSorting="True"
onsorting="GridView1_Sorting" ShowFooter="True" DataKeyNames="FaciId"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowupdating="GridView1_RowUpdating" BorderStyle="Outset">
<PagerSettings FirstPageText="第一页" LastPageText="最后一页"
NextPageText="下一页" PreviousPageText="上一页" />
<HeaderStyle BackColor="#C6C3C6" Font-Size="12px" HorizontalAlign="Center" />
<FooterStyle BackColor="#C6C3C6" ForeColor="black"/>
<Columns>
<asp:BoundField DataField="FaciId" HeaderText="装备编号" SortExpression="FaciId"
ItemStyle-HorizontalAlign="center"/>
<asp:BoundField DataField="FaciName" HeaderText="装备名称" SortExpression="FaciName"
ItemStyle-HorizontalAlign="center"/>
<asp:BoundField DataField="型号" HeaderText="型号" SortExpression="型号"
ItemStyle-HorizontalAlign="center"/>
<asp:BoundField DataField="ServeTime" HeaderText="使用年限" SortExpression="ServeTime"
ItemStyle-HorizontalAlign="center"/>
<asp:BoundField DataField="BeginTime" HeaderText="开始使用日期" SortExpression="BeginTime"
ItemStyle-HorizontalAlign="center" DataFormatString="{0:yyyy-MM-dd}"/>
<asp:BoundField DataField="SiteName" HeaderText="所属站点" SortExpression="SiteName"
ItemStyle-HorizontalAlign="center" />
<asp:BoundField DataField="SiteRoute" HeaderText="所属地铁线路" SortExpression="SiteRoute"
ItemStyle-HorizontalAlign="center" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="true" ItemStyle-HorizontalAlign="center" />
<asp:CommandField HeaderText="修改信息" EditText="编辑"
ShowEditButton="true" ItemStyle-HorizontalAlign="center" />
</Columns>

</asp:GridView>

<br />
<br />
</div>
</asp:Content>

62,267

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧