Reputation: 31
I cannot get the Confirm to fire on the button click. There is the Registration at the top of the ASP page:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
Here is the code:
<asp:Button ID="btnGetSelectedReports" runat="server"
Text="Download Selected Report(s)"
OnClick="btnGetSelectedReports_Click" BackColor="#337AB7"
ForeColor="White" Width="500px" Height="36px" Font-Bold="True"
Font-Size="Medium" />
<asp:ConfirmButtonExtender ID="btnGetSelectedReports_ConfirmButtonExtender"
runat="server"
BehaviorID="btnGetSelectedReports_ConfirmButtonExtender"
ConfirmText="The selected report(s) will be written to your folder. Do you wish to continue?"
TargetControlID="btnGetSelectedReports"
OnClientCancel="btnClearAll_Click()">
</asp:ConfirmButtonExtender>
In the web.config file:
<controls>
<add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolKit"/>
</controls>
And of course where I've added the script manager:
<asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="true">
</asp:ScriptManager>>
Any help is appreciated.
Upvotes: 0
Views: 232