I'm using a 3rd party component in an ASP.NET 1.1 Web application. The
component has a .Click event that can be fired from the client, with an
associated event procedure in the code-behind module.
The logic in the click event procedure may, under some conditions, need to
abort further processing. AFAIK the control's event is not cancellable. At
least its EventArgs does not have any apparent support for .Cancel.
So, what can I do to completely abort further processing from within the
click event procedure (i.e., cancel the event)? Please note...
.... I cannot simply have a try/catch block and throw an exception in order
to cancel the event processing - BECAUSE when my code is finished executing
(regardless of what it does or does not do), the 3rd Party component
transferes the user to another Web site (the site of the component's
vendor). It essentially POSTs some data to the vendor's web site - and I
want to be able to abort this POST operation which is performed by the 3rd
party component after any of my code in its click event procedure executes.
Thanks!