"Simon Wallis" <SimonWallisdiscussions.microsoft.com> wrote in message
news:6F76A711-7FF3-4047-A4CB-03D02533FB78microsoft.com...controls to my page. Each time the repeater.ItemDataBound event fires I> I have a PlaceHolder inside a repeater so that I can dynamically add
> Now, when I create this Label, I set the ID to have the dynamic value:
> "lblSubTotal_" + strCurrencyCode;
> ASP.NET will turn this Label into a [span] tag in the resulting HTML
get a reference to the tag via its ID value. For example:ID value by prepending a whole bunch of hierarchically-qualified info. For> objCurrencySubtotal = doent.getElementById("lblSubTotal_USD");
> The problem is that when ASP.NET creates the [span] tag, it modifies the
example, this is the span tag I end up with in the HTML output:id="pbdTemplate__PageTemplate_innerHolder_ctrlBala nces_rptrAggregateTotals__> <span
ctl1_lblSubTotal_USD">ASP.NET from prepending all that hierchical info and force it to use the ID>
value I myself assign to the control?
MyJSFunction will then be able to get the element using getElementById.
johnwsaundersiii at hotmail