I understand how to post a value back to a standard asp.net page and how to then use that value at the serverside:
Request.Form("id_of_posted_value_goes_here")
How do I do the same in a webservice (asmx)?
I can’t use the line above because it says:
Name 'Request' is not declared.
An asmx web service uses SOAP. So you don’t simply POST independent values to a SOAP service as you do with a normal ASPX web page. You must respect the standard. So in order to invoke an asmx web service a client needs to create a SOAP request wrapping the parameters in conformance to the exposed WSDL. If you are using Visual Studio you could use the
Add Service Referencedialog in order to generate a strongly typed client in order to invoke the service.