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);

posted @ 2010-04-15 17:22  StarWang  阅读(317)  评论(0编辑  收藏  举报