Data not transfered form $.ajax() to server side
<p>Hi i want to post some string to server side on click of a button
and have code as follows</p>

<pre><code> $('#sendData').click(function () {
                  $.ajax({
                        url: '/home/SendData',
                        type: 'POST',
                        dataType: 'string',
                        data: JSON.stringify(somedata),
                        contentType: 'text/plain; charset=utf-8'                        
                    });
            });
</code></pre>

<p>And in the Controller i have method </p>

<pre><code>[AcceptVerbs(HttpVerbs.Post)]
        public string SendData(string emaildat)
        {
              string data=emaildat;
        }
</code></pre>

<p>But emaildat is coming as null (data is not coming).</p>

<p>Is that ajax method is correct . Pls help me out</p>
