zoukankan      html  css  js  c++  java
  • Reapeater CommandName ,CommandArgument

     <asp:Repeater ID="RepeaterShow" runat="server" OnItemCommand="RepeaterShow_ItemCommand">
                                                    <%--OnItemCommand="Repeater1_ItemCommand"--%>
                                                    <ItemTemplate>

                                                        <tr role="row" class="gradeX even">
                                                            
                                                          <%-- <td>
                                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>--%>
                                                        <td>
                                                            <asp:Label ID="Label1" Text='<%# Eval("title") %>' runat="server"></asp:Label></td>

                                                            <td>
                                                               <%-- <a class="make" onmouseup="hide('open')"  href="#" onclick="SelectedImg(<%#Eval("id")%>)">
                                                                    选中</a>--%>
                                                                <asp:LinkButton ID="LinkButton1" CommandName="make" CommandArgument='<%#Eval("id") %>' runat="server">选中</asp:LinkButton><%--OnClientClick="SelectedImg(<%#Eval("id")%>)"--%>
                                                               
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>

    后台;

     protected void RepeaterShow_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "make")
            {

    string str=e.CommandArgument.ToString();

    }

  • 相关阅读:
    众包中使用变分推断和信念传播的几篇文章
    众包中的概率图模型和 EM 算法的使用和总结
    矩阵求导
    CCDM2018会议见闻
    关于 PCA 算法的一点小结
    Nginx--安装
    Nginx--简介
    linux--系统启动过程
    linux--目录结构
    Linux 远程连接工具Xshell6
  • 原文地址:https://www.cnblogs.com/zhubenxi/p/5332325.html
Copyright © 2011-2022 走看看