Quote:
Originally Posted by MonkeyMan666
I have got the visibility working through javascript but how do I go about calling the web methods in C# from javascript.
|
It depends on how critical it is for the events to all happen in a series.
I was thinking you could still do the server side uploading and email by wiring the click event as you have been, and triggering the script from OnClientClick in the same button. This would be the easiest way to go and would make it appear as though the label/image visibility was happening first, though in reality both the client and server functions would be called at the same time.
If that's not cutting the mustard for you, following is an interesting article about calling a server side method using JavaScript
:
http://www.azamsharp.com/Posts/92_A_...rameworks.aspx