如何在直放站在asp.net中选择整行 [英] How to Select Full Row in Repeater in asp.net
本文介绍了如何在直放站在asp.net中选择整行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
专家你好
如何在Repeater控件在asp.net中选择整行
我有权以下code
Hi Experts How to Select Full Row in Repeater Control in asp.net I Have Right the following code
function SetSelectedModuleIdRow(rowId, objRepeater) {
var rows = document.getElementById(objRepeater).getElementsByTagName("TR");
for (var j = 0; j < rows.length; j++) {
cells = rows[j].getElementsByTagName("TD");
for (var i = 0; i < cells.length; i++) {
cells[i].style.backgroundColor = '#ffffff';
}
}
var row = parseInt(rowId) + 1;
arrCol = rows[row].getElementsByTagName("td");
for (var j = 0; j < arrCol.length; j++) {
arrCol[j].style.background = '#808080 ';
}
}
上的ItemDataBound调用这个函数。
on ItemDatabound call this function.
推荐答案
请参考:
<一个href=\"http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/3c140248-6f92-4853-97ae-6b91df959885/\"相对=nofollow>突出显示在ItemCommand事件转发器控件中的行
这篇关于如何在直放站在asp.net中选择整行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文