Calling a WebMethod using jQueryAjax "GET" Calling a WebMethod using jQueryAjax "GET" jquery jquery

Calling a WebMethod using jQueryAjax "GET"


If you want to invoke it using GET, you need to add:

[WebMethod][ScriptMethod(UseHttpGet=true)]....


Another Ways: You can add it in config File

<system.web>    ...    <webServices>        <protocols>              <add name="HttpGet"/>        </protocols>    </webServices>    ...</system.web>


you should add the following code before the tag in Web .config file.

<location path="webservice.asmx">  <system.web>    <webServices>      <protocols>        <add name="HttpGet"/>        <add name="HttpPost"/>      </protocols>    </webServices>  </system.web></location>