Posted on: 3/31/2015 8:53:53 AM | Views : 638

Hi I'm calling WebMethod from my html page
Default.aspx
<script type="text/javascript"> function ShowIT() { $.ajax({ type: "POST", url: "Default.aspx/ProcessIT", contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess, failure: function (respcode) { alert(respcode); } }); } function OnSuccess(respcode) { switch (respcode.d) { case "Available": alert('success'); break; case "Not Available": alert('fail'); break; } } <script> ...

Go to the complete details ...