ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Call Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.NetHi @crajesh,<br />Please try the following<br /><br /><a href = 'link(Threads/157364/Unable-to-fire-jquery-alert-when-clicking-on-link-button-inside-gridview/)'>Unable to fire jquery alert when clicking on link button inside gridview</a><br /><br />It might help you.<br /><br />Cheers Andrea.http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Wed, 04 Jan 2017 08:25:24 GMTCall Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.Net<p>Hi@<a class="username" rel="Andrea">Andrea</a></p> <p>i tried for this , but not working for me,</p> <p>please provide me any other solution.</p> <p>&nbsp;</p> <p>thanks</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Wed, 04 Jan 2017 09:42:27 GMTCall Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.Net<p>try to remove your update panel</p>http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Wed, 04 Jan 2017 17:26:41 GMTCall Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.Net<p><a href="mailto:hi@ZZZ,">hi@ZZZ,</a></p> <p>&nbsp;</p> <p>i tried this , &nbsp;but not working.</p>http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Thu, 05 Jan 2017 03:29:59 GMTCall Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.Net<p>Hi <a class="username" rel="crajesh">crajesh</a>,</p> <p>I have tried your code and it seems like event.preventDefault once executed then it doesnt allow to run the server side code so for that you can do one thing is make a ajax call in the function of swal and achieve your task like below you can achieve it</p> <pre class="brush: js">&lt;script type=&#34;text/javascript&#34;&gt; function Swal_Confirm_Msg1(ctl, event, title_msg, text_msg, btn_type) { event.preventDefault(); swal({ title: title_msg, text: text_msg, type: btn_type, showCancelButton: true, confirmButtonClass: &#34;btn-danger&#34;, confirmButtonText: &#34;Yes, delete it!&#34;, cancelButtonText: &#34;No, cancel plx!&#34;, showLoaderOnConfirm: true, animation: &#39;slide-from-top&#39;, allowEscapeKey: false, allowOutsideClick: false, html: true }, function (isConfirm) { if (isConfirm) { //Do your stuff if clicked yes. $.ajax({ type: &#34;POST&#34;, url: &#34;YourPageName/YourMethodName&#34;, data: &#34;Data you want to pass&#34;, contentType: &#34;application/json; charset=utf-8&#34;, dataType: &#34;json&#34;, success: function (response) { //response will return the value you assigned while returning on success call of ajax. }, error: function (response) { // reponse will return server side error message. } }); } else { //Do your stuff if clicked No. } }); } &lt;/script&gt;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Thu, 05 Jan 2017 07:19:01 GMTCall Server side code on Sweet Alert Confirm Button using jQuery Ajax in ASP.Net<p>Hi@<a class="username" rel="AnandM">AnandM</a></p> <p>thank u very much ,</p> <p>solved my issues using u r solution.</p>http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/http://www.aspforums.net/Threads/144341/Call-Server-side-code-on-Sweet-Alert-Confirm-Button-using-jQuery-Ajax-in-ASPNet/Thu, 05 Jan 2017 10:17:03 GMT