错误创建gridview控件“服务器标签格式不正确” [英] Error create gridview control "The server tag is not well formed"
问题描述
<%@ Page Title =主页语言=C#MasterPageFile =〜/ Site.masterAutoEventWireup =true
CodeBehind =Default.aspx.cs Inherits =WebApplicationGridDropDown._Default%>
< asp:Content ID =HeaderContentrunat =serverContentPlaceHolderID =HeadContent>
< asp:Content ID =BodyContentrunat =serverContentPlaceHolderID =MainContent>
欢迎使用ASP.NET!
要了解有关ASP.NET访问的更多信息 www.asp.net 。
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="WebApplicationGridDropDown._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Welcome to ASP.NET!
To learn more about ASP.NET visit www.asp.net.
您还可以找到
title =MSDN ASP.NET Docs> MSDN上的ASP.NET文档。
You can also find
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN.
推荐答案
缺少结束标记。
在btncancel标记后添加以下标记
It's missing end tag.
Add the below tag after btncancel tag
</asp:gridview>
这篇关于错误创建gridview控件“服务器标签格式不正确”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!