不会啊~
首先你要确定你在页面上引用了这个组件
<%@ Register TagPrefix="JeaN" Namespace="BenQ.DataGridPlus" Assembly="BenQ.DataGridPlus" %>
然后
<JeaN:DataGridPlus id="TestDG" runat="server" PageSize="5" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanged="PageChanged" PagerOtherPageCssClass="HotLink" OnSortCommand="SortByColumn">
<Columns>
<asp:BoundColumn DataField="ProductTypeID" SortExpression="ProductTypeID" HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeEName" SortExpression="ProductTypeEName" HeaderText="EName"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeCName" SortExpression="ProductTypeCName" HeaderText="CName"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeDate" SortExpression="ProductTypeDate" HeaderText="CreateDate"></asp:BoundColumn>
</Columns>
</JeaN:DataGridPlus>
首先你要确定你在页面上引用了这个组件
<%@ Register TagPrefix="JeaN" Namespace="BenQ.DataGridPlus" Assembly="BenQ.DataGridPlus" %>
然后
<JeaN:DataGridPlus id="TestDG" runat="server" PageSize="5" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanged="PageChanged" PagerOtherPageCssClass="HotLink" OnSortCommand="SortByColumn">
<Columns>
<asp:BoundColumn DataField="ProductTypeID" SortExpression="ProductTypeID" HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeEName" SortExpression="ProductTypeEName" HeaderText="EName"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeCName" SortExpression="ProductTypeCName" HeaderText="CName"></asp:BoundColumn>
<asp:BoundColumn DataField="ProductTypeDate" SortExpression="ProductTypeDate" HeaderText="CreateDate"></asp:BoundColumn>
</Columns>
</JeaN:DataGridPlus>
解决方案 »
- .net开发wap,如何实现返回上页?
- 关于System.Drawing.PointF x与y的算法问题
- ActiveReport3做报表在VS里运行显示正常,发布到IS上后成A4纸大小了
- 关于连接数据库的问题
- iis网站的主机头绑定和dns设置是什么意思??
- 存储过程问题
- 关于FORMSET的问题
- Asp.net中如何用做一个基于 internet 的网络视频会议系统,欢迎各高手进来赐教讨论。
- 关于DataGrid中模板列里dropdownlist的问题
- 怎样得到已知控件的下一控件的索引
- 难题求救!
- WEB自定义控件。我辛苦JS填充的一些数据。ASP.net控件一与服务器控件交互,就全没了...
<%@ Register TagPrefix="cc2" Namespace="WebControlLibrary1" Assembly="WebControlLibrary1" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="NestedDataGrid.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<cc2:webcustomcontrol1 id="WebCustomControl11" style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 48px" runat="server">
<Columns>
<asp:BoundColumn></asp:BoundColumn>
</Columns>
</cc2:webcustomcontrol1></form>
</body>
</HTML>
可一样报错的。为什么啊?