Posted on: 6/5/2014 9:45:54 PM | Views : 406

Hi everyone,
I have an error for a long time ago and I searched a lot about this. I think is better expose my problem with one example:
- I have one textbox in something.aspx and I want get the value of it and send to something.aspx.cs via json. My jquery code:
$("#textbox").keypress(function () { alert($("#textbox").val()); //this alert give to me the right answer $.ajax({ type: "post", url: "../../folder/something.aspx/mymethod", //because my jquery file is in different folder contentType: "application/json; charset=utf-8", dataType: "json", success: function (result) { alert(result.d); }, error: function (xhr, status, error) { alert(error); } }); }); - My method in something.aspx.cs c ...

Go to the complete details ...