Possible Duplicate:
Any way to prevent master pages from changing element IDs?
Hi
I have a .net 2.0 web page that is using a master page. On the page in question is a form and I am trying to call one of the sub element. The form element name is:
"contact_label" - its an asp:Label
But when I look at the source I am getting that the name is:
"ctl00_ContentPlaceHolder1_contact_label"
Is there a way to get around this 'name garbling?'
I have read that I should be able to reference it something like this:
document.getElementById("<%= contact_label.ClientID %>")
but that didn't work for me either...
This is all .net 2.0 with javascript.
Thanks, R.