Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 20, 2006 08:40 PM by Jason241
Apr 20, 2006 12:57 AM|LINK
I'm using the ConfirmButtomExtender in my project with the following setup.
<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?
Apr 20, 2006 07:11 PM|LINK
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" />
Apr 20, 2006 08:40 PM|LINK