Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
In my usercontrol I am binding a value in to aspnet hyeperlink ike this
<asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="javascript:void(0);" onclick="PopupCenter(document.getElementById('lbl12').innerHTML, 'myPop1',800,600);">
This code giving me this javascript error
SCRIPT5007: Unable to get property 'innerHTML' of undefined or null reference
Cant I use innerHTML like this?
This is the function
<script> function PopupCenter(pageURL, title, w, h) { var left = (screen.width / 2) - (w / 2); var top = (screen.height / 2) - (h / 2); var targetWin = window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); } </script> Thanks
You will get this error when there is no element with id 'lbl12' on your page.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
innerHTML empty
Hi,
In my usercontrol I am binding a value in to aspnet hyeperlink ike this
This code giving me this javascript error
SCRIPT5007: Unable to get property 'innerHTML' of undefined or null reference
Cant I use innerHTML like this?
This is the function
You will get this error when there is no element with id 'lbl12' on your page.
is working on a reply...