Posted on: 6/12/2013 8:32:46 PM | Views : 351

Could some please help:  I have a asp.net application where I call a [WebMethod] from the forms "OnUnload" method.  The problem I'm having is in the WebMethod I need to either pass an arguement into the functon or access a hidden field value.  The problem I'm having is that 1.  the WebMethod will not fire if it has an argument in it.  2.  The web method has to be static to work and because of being static I get this error when trying to access the hidden fields value "An object reference is required for the non-static field, method, or property".
Would anyone have any idea how to do this?
Thanks
Dave.
Here is my code
<head runat="server">     <title>Image Viewer</title>      <script ...

Go to the complete details ...