GridView包GridView包TextBox, 得到TextBox的客户端ID的自动生成的部分:
^.*?\d+_[^_]+_[^_]+_[^_]+_+[a-z]+\d+_
匹配 GridSegment_ctl02_PP_ProcessTask_GridTask_ctl02_XXXXXXXX

Repeater包GridView包TextBox:
^.*?\d+_[^_]+_+[a-z]+\d+_
匹配 RepeaterPriceMaintain_ctl08_QDataGridPriceDetailMaintain_ctl02_XXXXXXXXXX

JS中的用法:
function GetValueFromQLookUp(obj, control, value)
            {      
                
var matchInfo = /^.*?\d+_[^_]+_+[a-z]+\d+_/;
                
var matchObjID =  obj.match(matchInfo);      
                
var halfClientID = matchObjID[0]  
                
var newID = halfClientID + control           
                document.getElementById(newID).value 
= value;   
            }

相关文章:

  • 2021-06-19
  • 2021-06-03
  • 2022-12-23
  • 2022-01-13
  • 2021-08-09
  • 2022-12-23
  • 2021-05-30
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2021-06-06
  • 2021-08-28
  • 2022-12-23
  • 2021-06-05
  • 2021-07-07
相关资源
相似解决方案