title: How to return a string in c# as soon as called.?
body: <p>This is a sample of google charts.. I am using c#.net.. What should I do in C# to return a string in place of getData.php here..</p>
  
  <pre><code>function drawChart() {
        var jsonData = $.ajax({
            url: "getData.php",
            dataType:"json",
            async: false
            }).responseText;
  </code></pre>
  
  <p>I have tried to work it out using class but it didn't worked.. Can web service be used or is their any other way for that..</p>