网易考拉海购招募店主:ASP.NET报错。

来源:百度文库 编辑:高校问答 时间:2024/05/08 09:39:44
Server Error in '/dotNet2' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Type 'System.Web.UI.WebControls.DataGrid' does not have a public property named 'property'.

Source Error:

Line 17: cellPadding="3" cellSpacing="0" font-name="verdana" font-size="8pt" headerStyle-BackColor="#AAAADD"
Line 18: autoGenerateColumns="false">
Line 19: <property name="Columns">
Line 20: <asp:boundColumn headerText="TOF" dataField="EntryType"/>
Line 21: <asp:boundColumn headerText="Date/Time" dataField="TimeGenerated"/>

Source File: /dotNet2/speccolsonly.aspx Line: 19

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
上面问题是浏览器的出错信息。这是如何造成的?如何解决?

<property name="Columns">
这行有问题 DataGrid没有这个属性
应该是<Columns>