<asp:LinkButton ID="LinkButton1" runat="server" OnClick="delgallery(<%#Eval('iu_imageid')%>")>删除</asp:LinkButton>
</ItemTemplate>
上面就是部分代码。delgallery("")是CS页的方法还是不知道该怎么写。。都是不对。linkbutton是放在模板内。所以比较麻烦。如果不行还有没有别的方法??
</ItemTemplate>
上面就是部分代码。delgallery("")是CS页的方法还是不知道该怎么写。。都是不对。linkbutton是放在模板内。所以比较麻烦。如果不行还有没有别的方法??
在RowCommand事件里判断
if(e.CommandName == "xz")
{
//tempLinkButton 就是你点的那个
LinkButton tempLinkButton = e.CommandSource as LinkButton;}