asp.net - Find out client-side ID of HTML element created by .NET? -
how write client-side script access html element when .net has generated element's id @ runtime?
at present have in aspx:
<asp:content contentplaceholderid="middle_area" runat="server"> <asp:image id="imagebarchart" runat="server" /> </asp:content> <script> var oimage = document.getelementbyid('ctl00_middle_area_imagebarchart') </script>
it working @ present, doubt reliable!
clientid: documentation
you <%= imagebarchart.clientid %>
put in javascript
Comments
Post a Comment