I'm using the ConfirmButtomExtender in my project with the following setup.
<MasterPage>
ScriptManager
<ContentPlaceHolder>
UpdatePanel
<Wizard>
ConfirmButtonExtender
<Input id="xx" runat="server" name="cancel">
I started by using the <asp:button> but get an Assertion Failed error message, because I set the button to Visible=False. Setting the style visibility=hidden does not seem to work with the asp:button. So I switched to the html input instead. However what happens when I click the button is the event fires for the button without waiting for the confirmation box response. I thought this was supposed to catch the event. I would still prefer to use the asp:button but if I can't hide the button then it defeats the purpose. Is this a bug? Are their any work arounds?
Extenders won't work for controls that aren't marked as "runat=server".
Remember that Visible=False prevents a control from rendering out to the client, so that's why you are getting an assertion. Atlas can't find the control it's supposed to be hooked up to.
Visiblity:hidden should work fine. This worked for me (looks like you've got an = instead of a : in there):
<asp:Button ID="Button2" style="visibility:hidden" runat="server" Text="Button" />
Fair enough.
Thnaks
No comments:
Post a Comment