This only hapens with I place <button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button> in side the page's existing Form tag.
<body leftmargin="0" background="../images/bg.gif" rightmargin="0"> <form method="post" action="" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display: none;"> <input type="hidden" runat="server" id="Token" name="token" value="" /> </form> <form id="Form1" method="post" runat="server"> <input id="_SelectedID" type="hidden" name="_SelectedID" runat="server"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr><td><button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button></td></tr>
If I place it between the form tags it works correctly.
<body leftmargin="0" background="../images/bg.gif" rightmargin="0"> <form method="post" action="" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display: none;"> <input type="hidden" runat="server" id="Token" name="token" value="" /> </form> <button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button> <form id="Form1" method="post" runat="server"> <input id="_SelectedID" type="hidden" name="_SelectedID" runat="server"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr><td></td></tr>
Can any one shed some light on why this is happening?
Solved! Go to Solution.
08-10-2017 12:40 PM
adding return false; to the button fixed the issue. I'm just guesing that the runat="server" was causing the postback and closing the window.
08-10-2017 02:51 PM
adding return false; to the button fixed the issue. I'm just guesing that the runat="server" was causing the postback and closing the window.
08-10-2017 02:51 PM
Thank you so much i got some more tips monitor for developers here while reading this post.
soundbar under 200 and How to connect Samsung soundbar to tv
03-24-2021 01:44 AM
You might also want to display the relationship among your gadget and the gateway link. This blunders can occur if your application can't make a TLS connection to our gatway via the SDK.
03-30-2022 05:52 AM