zoukankan
html css js c++ java
Repeater嵌套DropDownList如何实现OnSelectedIndexChanged
protected
void
selChengji_OnSelectedIndexChanged(
object
sender, EventArgs e)
{
DropDownList drop
=
sender
as
DropDownList; //获取当前选中的DropDownList
Repeater repS
=
drop.Parent.Parent
as
Repeater; //drop的上一级的上一级控件就是Repeater控件
int
n
=
((RepeaterItem)drop.Parent).ItemIndex; //获取当前选中行的索引
//获取其他信息进行操作
HtmlInputText xuefen
=
(HtmlInputText)(repS.Items[n].FindControl(
"
txtXuefen
"
));
string
id
=
((HtmlInputHidden)(repS.Items[n].FindControl(
"
txtId
"
))).Value;
......
}
查看全文
相关阅读:
c# Task多线程并行任务中等待所有线程都执行完成
C#多线程之所有线程执行完成后
正则表达式
js 实时监听input中值变化
js中prop和attr区别
获取自定义属性
checkBox
js中判断数组中是否包含某元素的方法
leetcode — path-sum-ii
leetcode — path-sum
原文地址:https://www.cnblogs.com/wucf2004/p/784520.html
最新文章
同源
正则的应用 及(?=.* 和 ?=. 区别)
?= ?: ?! 的理解
编码、转码、加密、解密的几种方法(前端版)
Table 表格 的合并单元格、隔行变色的技巧、其它一些用过的 API 的例子
html表格中的tr td th用法
Less语法整理
绝对路径和相对路径
[leetcode sort]147. Insertion Sort List
[leetcode sort]148. Sort List
热门文章
[leetcode sort]75. Sort Colors
[leetcode sort]57. Insert Interval
[leetcode sort]56. Merge Intervals
[leetcode shell]194. Transpose File
[leetcode shell]192. Word Frequency
[leetcode]242. Valid Anagram
[leetcode]219. Contains Duplicate II
[leetcode]217. Contains Duplicate
整理:几款好用的Markdown编辑器
C#中线程的委托
Copyright © 2011-2022 走看看