Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

advice and example needed with events

$
0
0

Hello,

I have a VS 2005 web project with a button on a web form.  When a user presses the button a length web service transaction takes place.  I'd like to prevent users from pressing the button again until the transaction has finished.

I know there are several ways of doing this but I'd like to try raising an event when the button is pressed and pass an event argument that indicates that the transaction has started and the button should become disabled.  When the transaction is complete I'd like to raise another event and pass an event argument that the transaction has finished and the button should now become enabled.

Is using events the right/best way of doing this and does anybody know of an online example that does something simular that i could modify to suit my requirements?

Many thanks


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>