asp.net <asp:Repeater>下的 asp:LinkButton CommandArgument点击事件
前台
<asp:Repeater ID="rptData" runat="server" OnItemCommand="rptData_ItemCommand">
<ItemTemplate>
<tr id="trRemark" <%# Container.ItemIndex%==?"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 > )
{
JavascriptFun("alert('审核通过!');window.location.href='../Medicalcaseauditing/MedicalcaseauditList.aspx'");
}
else
{
JavascriptFun("alert('审核不通过!');window.location.href='../Medicalcaseauditing/MedicalcaseauditList.aspx'");
}
}
}
asp.net <asp:Repeater>下的 asp:LinkButton CommandArgument点击事件的更多相关文章
- 关于iview下拉菜单无法添加点击事件的解决办法
效果如下图所示,点击下拉菜单,点击退出,然后跳到登录界面 代码如下: <Dropdown trigger="click" style="margin-left: 2 ...
- 谈谈如何给下拉框option添加点击事件?
我们在用到下拉列表框select时,需要对选中的<option>选项触发事件,其实<option>本身没有触发事件方法,我们只有在select里的onchange方法里触发. ...
- JS如何给ul下的所有li绑定点击事件,点击使其弹出下标和内容
这是一个非常常见的面试题,出题方式多样,但考察点相同,下面我们来看看这几种方法:方法一: var itemli = document.getElementsByTagName("li&quo ...
- 对Ul下的li标签执行点击事件——如何获取你所点击的标签
问题所来:做项目时,一般的数据都是用循环动态加载出来的,结构都是一样的,只是绑定的值不同,如何对相同的标签做处理的问题就来了. 例如:点谁就显示谁的数值 <ul > <li id=& ...
- 为所有的Ul下的li标签添加点击事件
- asp.net中Repeater控件用法笔记
大家可能都对datagrid比较熟悉,但是如果在数据量大的时候,我们就得考虑使用 repeater作为我们的数据绑定控件了.Repeater控件与DataGrid (以及DataList)控件的主要区 ...
- js 触发LinkButton点击事件,执行后台方法
页面 <asp:LinkButton ID="lbtButton" runat="server" CssClass="lbtButton&qu ...
- Asp.Net:Repeater 详情 备用
页面 repeator就想for循环一样,没有编辑模板,有删除delete和详情detail模板 <%@ Page Language="C#" AutoEventWireup ...
- asp.net 在repeater控件中加按钮
在repeater中加入方法有两种方法: 第一种:是对repeater控件的行添加OnItemCommand事件,添加方法也是有两种 1.在设计页面中,选中repeater控件右击==>属性== ...
随机推荐
- [LeetCode] 628. Maximum Product of Three Numbers_Easy
Given an integer array, find three numbers whose product is maximum and output the maximum product. ...
- [LeetCode] 496. Next Greater Element I_Easy tag: Stack
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of n ...
- [LeetCode] 232. Implement Queue using Stacks_Easy tag: Design
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of ...
- [LeetCode] 697. Degree of an Array_Easy tag: Hash Table
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the ma ...
- python -- 解决If using all scalar values, you must pass an index问题
[问题描述] 在将dict转为DataFrame时会报错:If using all scalar values, you must pass an index 例如: summary = pd.Dat ...
- SQL Expression Language Tutorial 学习笔记二
11. Using Textual SQL 直接使用 SQL 如果实在玩不转, 还是可以通过 test() 直接写 SQL. In [51]: s = text( ...: "SELECT ...
- Codeforces 1144G Two Merged Sequences
题意: 将一个序列分成两个序列,两个序列中元素的相对顺序保持和原序列不变,使得分出的两个序列一个严格上升,一个严格下降. 思路: 我们考虑每个元素都要进入其中一个序列. 那么我们维护一个上升序列和一个 ...
- Python3 简明教程
Python是由吉多·范罗苏姆(Guido Van Rossum)在90年代早期设计.它是如今最常用的编程 语言之一.它的语法简洁且优美,几乎就是可执行的伪代码. 注意:这篇教程是特别为Python3 ...
- Request 对象 response 对象 常见属性
请求和响应 Express 应用使用回调函数的参数: request 和 response 对象来处理请求和响应的数据. app.get('/', function (req, res) { // - ...
- Linux服务器配置---安装telnet
安装telnet telnet是标准的远程登录协议,历史悠久.但是telnet的对话数据没有加密,甚至用户名和密码都是明文显示,这样的服务风险极大.目前大多数系统多已经不会再安装这个服务了, ...