Tuesday, September 24, 2013

document.getElementById and asp.net with Master Pages

Using JavaScript to locate controls in ASP.net pages that are linked to master pages can be tricky.  This is because the ASP.net reassigned control IDs dynamically.

A simple solution is to use asp.net inline Tags.

For Example:

Instead for saying:




Thats it... I hope this helps some of you.