A more scalable approach is to use the following syntax (replace ResultsSpan with the aspx panel) ...
function LookUpStock()
{
var lb = document.getElementById('<%=ListBox1.ClientID%>');
var product = lb.options[lb.selectedIndex].text;
CallServer(product, "");
}
function ReceiveServerData(rValue)
{
document.getElementById('<%=ResultsSpan.ClientID%>').innerHTML = rValue;
}
Thus, if the name (or actual page) of MasterPage changes, the code will still work.
ASP.NET <% =% > .
, . , , , : MASTERPAGEPREFIX_CONTAINERCONTOLNAME_ListBox1, .
" " - ASP.NET