on-internet
← Community

Web service call through JS, DataType Json

Stack Overflow ·

I am trying to call web service through a JS but anyhow it doesnt get call. I am trying to make sum of 2 number. Page contains of 3 textbox and it has it text set hard codded as : <form id="form1" runat="server"> <div> <asp:TextBox ID="Text1" Text="5" runat="server"> </asp:TextBox> <asp:TextBox ID="Text2" Text="2" runat="server"> </asp:TextBox> <asp:TextBox ID="Text3" runat="server"> </asp:TextBox> </div> </form> My code are as follows: <script type="text/javascript"> $(document).ready(function () { debugger; $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "C:/Users

Comments

Sign in or sign up to comment and upvote.

No comments yet.