I’ve been using a small hack to deal with the ASP.NET naming container morass that is so prevalent in client side development with ASP.NET. Particularly in Master Pages all server control IDs are basically munged because the master page place holders are naming containers.
To recap – the problem is that if you are dealing with something as simple as this:
To recap – the problem is that if you are dealing with something as simple as this:
<div class="contentcontainer" runat="server" id="PageContent">
<h2>Stock Quote Lookup</h2>
<div class="labelheader" style="margin-top: 20px;">Enter a stock symbol:</div>
<asp:TextBox runat="server" ID="txtSymbol" />
<input type="button" id="btnGetQuote" value="Go" />
<div id="divStockWrapper">
<div id="divStockDetail">
</div>
<img id="imgStockChart" />
</div>
</div>