I am building a web service that will communicate with a web page using jquery. I want to build my webservice so it is type safe, without the need to perform conversions on the server side.
How can I issue an ajax call from the client side, using jquery to the server that's expecting an int value parameter.
Edit: I understood that this is not possible. I am programming the server side with c#. currently the web service supports both calls from client side (js) and other utilities (other c# programs). The simplest solution I can currently think of is copying the methods and change their signature to string, then convert the datatypes and call the methods, this time with the correct data types.
Is there any .net 4 attribute that I can decorate my method that performs this automatically?
Thank you