zoukankan      html  css  js  c++  java
  • asp.net <asp:Repeater>下的 asp:LinkButton CommandArgument点击事件

    前台

    <asp:Repeater ID="rptData" runat="server"  OnItemCommand="rptData_ItemCommand">
      <ItemTemplate>
           <tr id="trRemark" <%# Container.ItemIndex%2==0?"class="even"":" class="odd"" %>>                               
                 <td>
                      <%# ReturnDescption(Eval("CaseState").ToString())%>
                 </td>
                 <td class="last">
                                                     
                    <asp:LinkButton CommandArgument='<%#Eval("ID") %>' Text="审核" class="down_btn" id="checkbtns" CommandName="checkbtn" style="cursor: pointer;" runat="server" />
                                                       
                 <a class="down_btn" id="userRegistQues" style="cursor: pointer;" onclick="ReturnCase(<%#Eval("ID") %>)" >退回</a>
                 <a class="down_btn" id="userRole" style="cursor: pointer;">转交</a> 
             </td>
          </tr>
       </ItemTemplate>
    </asp:Repeater>

    后台:

     protected void rptData_ItemCommand(object source, RepeaterCommandEventArgs e)
            {
                if (e.CommandName.ToString() == "checkbtn")
                {
                    string ID = (e.CommandArgument).ToString();
    
                    string medicalcaseInfoId = ID;
                    int i = medicalcaseselectinfoBLL.UpdateAuditStateByMedicalcaseId(medicalcaseInfoId);
    
                    if (i > 0)
                    {
                        JavascriptFun("alert('审核通过!');window.location.href='../Medicalcaseauditing/MedicalcaseauditList.aspx'");
                    }
                    else
                    { 
                        JavascriptFun("alert('审核不通过!');window.location.href='../Medicalcaseauditing/MedicalcaseauditList.aspx'");
                    }
                }
            }
  • 相关阅读:
    单调栈问题解析
    Linux进程状态切换
    Shell编程小例子
    Linux之shell编程
    树的遍历框架
    你真的会求1-100有多少个素数吗
    java实现LRU算法
    从上到下打印二叉树 III
    从上到下打印二叉树I
    模拟盘电路板调试过程中出现的问题
  • 原文地址:https://www.cnblogs.com/youmingkuang/p/6831435.html
Copyright © 2011-2022 走看看