JavaScript 获取GridView模板列中用户控件的值?
function test(control)
{
if (control==undefined)return false;
var thisTR = control.parentNode.parentNode;
if (thisTR.cells.length == 0) return false;
var holderID = control.id;
var holderName = control.name;
holderID = holderID.substring(0, holderID.lastIndexOf('_') + 1);
holderName = holderName.substring(0, holderName.lastIndexOf('$') + 1);
if(.....)....
}
调用:test(this);