I have this popup (open) link
<a href="modal.html" target="_blank" onclick="openMyModal('modal.html'); return false;">Click here to open</a>
Its works fine, but how can i use this OnClick event on a Asp:ImageButton !?
<asp:ImageButton runat="server" ID="btnSubscribe" ImageUrl="~/add/image/btntilmeld.png"></asp:ImageButton>
If i add the OnClick to the Asp:ImageButton i get this error
siraero
Member
419 Points
604 Posts
how can i use an A href OnClick on an Asp:Imagebutton
Apr 06, 2012 08:55 PM|LINK
Hi
I have this popup (open) link
<a href="modal.html" target="_blank" onclick="openMyModal('modal.html'); return false;">Click here to open</a>
Its works fine, but how can i use this OnClick event on a Asp:ImageButton !?
<asp:ImageButton runat="server" ID="btnSubscribe" ImageUrl="~/add/image/btntilmeld.png"></asp:ImageButton>
If i add the OnClick to the Asp:ImageButton i get this error
<asp:ImageButton runat="server" ID="btnSubscribe" ImageUrl="~/add/image/btntilmeld.png" onclick="openMyModal('modal.html'); return false;"></asp:ImageButton>BC30456 openMyModal is not a member of ASP.masterpage_master