cs文件
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ BindData(DataList1);(这里错误:最匹配的重载方法具有一些无效参数) BindData1(Repeater1);
}
}
protected void BindData(DataList aa)
{
}
protected void BindData1(Repeater aa)
{
}
aspx文件:
<asp:DataList ID="DataList1" runat="server">
</asp:DataList>
<asp:Repeater ID="Repeater1" runat="server">
</asp:Repeater>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ BindData(DataList1);(这里错误:最匹配的重载方法具有一些无效参数) BindData1(Repeater1);
}
}
protected void BindData(DataList aa)
{
}
protected void BindData1(Repeater aa)
{
}
aspx文件:
<asp:DataList ID="DataList1" runat="server">
</asp:DataList>
<asp:Repeater ID="Repeater1" runat="server">
</asp:Repeater>
解决方案 »
- iis服务器应用程序不可用,我快憋死了
- 给个asp.net C#链接access数据库的类文件
- 新建了一个类库,当我添加引用时找不到“Microsoft.Practices.EnterpriseLibrary.Common“请问各位这个怎么添加
- 提取从SQL Server中查询的数据
- _____________datalist中的<SeparatorStyle>中不能用html标签吗
- 板主请看这里,一个20分的问题,49人次回答,最后有一个人打了一个‘a’,结果那个人得了500分!
- 如何在windows2000中安装iis6
- 想去北京或深圳找工作,大家给点意见。谢了……
- 求救!!! 我总是连不上数据库
- 如何使datagrid中显示的数据只用显示两位小数?
- 关于5天内自动登陆的疑问
- [求助]ASP.NETMVC3+EntityFramework4.1+MySQL配置文件问题?
protected void BindData()
{
//直接使用服务端控件
DataList1.属性="值";
}