Hi All,
A small problem I'm having: I have a page with a ConfirmButtonExtender which works absolutely perfectly when the page is first loaded.
However as soon as I do a PostBack - whether I'm selecting something in a GridView, clicking a different button, choosing a value from a DropDownList, or whatever - it stops working. It doesn't throw any error, it just has no effect and the button it's targeting just runs its OnClick procedure straight away.
Anyone have any idea what's causing this and how I can get around it?
Many thanks in advance,
Dale
Well, there's not a lot to post really! :)
I have a page with various controls on, some of which AutoPostBack, along with an Atlas ScriptManager and an register assembly directive at the top of my page. I then have the ConfirmButtonExtender control:
<cc1:ConfirmButtonExtenderID="ConfirmButtonExtender1"runat="server"><cc1:ConfirmButtonPropertiesTargetControlID="Button1"ConfirmText="Are you sure you want to copy?"/>
<cc1:ConfirmButtonPropertiesTargetControlID="Button1"ConfirmText="Are you sure you want to delete?"/>
</cc1:ConfirmButtonExtender>
And as I said, it works perfectly when the page first loads but not at all after it posts back to itself, be that by e.g. changing pages on a GridView, selecting from a DropDownList or whatever. What confuses me is that it does work when the page is first loading, so presumably there's nothing that wrong with the code!
I've tried it with just the one ConfirmButtonProperties as well, still the same problem.
Any thoughts would be much appreciated!
Thanks,
Dale
Please post a complete page that demonstrates your problem with as few elements as possible - we want to be able to see the same problem to investigate it. Thanks!
No comments:
Post a Comment