How to use jQuery to make a call to c# webservice to get return value
<p>I want to use jQuery to make a call to a c# web service called c.ashx which checks whether that username is valid and returns an error message as a string.</p>

<p>What should I put for data: and content type: if the return value of the c# webservice is a string value?</p>

<pre><code> jQuery.ajax({
 type: "GET",
 url: "/services/CheckUserName.ashx",
 data: "",
 contenttype: "",

 success: function (msg) {
     alert("success");

 },
 error: function (msg, text) {
     alert(text);
 }
 });
</code></pre>
