I've included the
ScriptManager
to the page, then attached the
ConfirmButtonExtender
to a button click event. Everything shows up correctly in the properties of the button but no Confirm Window shows when the button is clicked. A white border shows around the button when the button is clicked, but no Confirm Window.
There is the Registration at the top of the ASP page:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
Then I added the ScriptManager:
<asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="true">
</asp:ScriptManager>>
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:
<controls>
<add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolKit"/>
</controls>
Nothing seems to work, it always goes to the next page on a redirect and completes all steps prior to switching to the new page, bypassing a Confirm Window.
I would appreciate any help,
Jack
What I have tried:
I added and changed several ways of attaching the
ConfirmButtonExtender
.
I've added different lines to the web.config files.