Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ConfirmButtonExtender not work on remote server !

$
0
0

Hello,

In my web project while I'm working on local computer the ConfirmButtonExtender control works fine, but on remote server ( production server ) the control not working on all pages ( click event fires without confirm message ) .

ASP code :

<asp:LinkButton runat="server" ID="lnkLogout" CausesValidation="false" OnClick="lnkLogout_Click">
  Log Out</asp:LinkButton>

 <asp:ConfirmButtonExtender ID="LogExtender" runat="server"
                                        ConfirmText="Are you sure to Logout ?" TargetControlID="lnkLogout" Enabled="true">
                                    </asp:ConfirmButtonExtender>

C# code :

Session.RemoveAll();
Session.Abandon();
Response.Redirect(System.Web.VirtualPathUtility.ToAbsolute("~/" + Modules.PO.URLCenter.LoginEn));

* note : if I use following approach it works fine :

lnkLogout.OnClientClick = "return confirm('are you sure to logout ?');";

Thanks in advance,


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>