asp.net 'compound' control selectors

asp.net 'compound' control selectors

I have a page that has several embedded usercontrols with a popup reorderlist.  Like
-page
    -usrcontrol1
        -usrcontrol2
            -usrcontrol3
                -usr-popup-control
                    -usr-reorderlist-control
 
-------------------------------------
 
each 'row' in the usr-reorderlist looks like this
<div id="ctl00_cntMn_IWizard_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_rowdata"style="width:550px; float:left"><div id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_dvOrdinal" ...<span id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_lblOrdinal">2</span></div>
 <div id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_dvTbltype" ...<span id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_lblTblType">Demographics</span></div>
 <div id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_dvFilename"...<span id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_lblFilename">schools.txt</span></div>
 <div id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_dvFileId" ...<span id="ctl00_cntMn_IWd_wzImport_ucSched_RoPopUp_ucRoFileList_rolFilesList__rli1_lblFileId">3466</span></div>
</div>



 
------------------------------------
 
i need to return the fileid and row index after the user re-orders the list, for each of these rows
 
using the following line i'm able to get a hold of the re-order list row but have been un-able to get the data out of the ...lblFileId label control

$(

'[id$=_rowdata]' ).each( function () {var element = this;}

 

this line is ment to get ref. to the span control with id ending in "_lblFileId" so the data and then row index can be collected...

var fld1 = $("element[id$=_lblFileId]"); 

is this the correct approach and if so what should the 'fld1' line look like to pull this data. finding help on the web for interating over asp.net rendered controls has been sparse.  TIA.

Keith