title: Pass the Dictionary data to Controller string method using jquery post
body: <p>My Jquery code is given below</p>
  
  <pre><code> $("#btnExec").live('click', function () {
         var data1= "lorem ipsum";
         var data2= "lorem ipsum";
         var data3= "lorem ipsum";
         var dict = new Object();
  
         $("#ArgsTable tr").each(function (e) {
                  var firstTD = $(this).find("td").eq("0").html().trim().replace(/\s/g, "");
                  var secondValue = $(this).find("td").eq("1").find("input:text").val();
                  dict[e] = [firstTD,secondValue]; 
         });
  
         $.ajax({
                  type: 'POST',
                  cache: false,
                  data: { strdata1: data1, strdata2: data2, strdata3: data3, myDictionary: dict },    
                  url: '&lt;%=Url.Action("ExecData","Home") %&gt;',
                  success: function (data) {        
                  }
                });
   });
  </code></pre>
  
  <p>And my controller method is given below</p>
  
  <pre><code>public string ExecData(string strdata1, string strdata2, string strdata3,  Dictionary&lt;object, object&gt; myDictionary)
  {
      //do some stuff...
  }
  </code></pre>
  
  <p>If i click <strong>btnExec</strong> means, its fired the controller method with string values properly, but the dictionary values come always <strong>null</strong> ..</p>
  
  <p>In my scenario "the return type of controller method should be string only"</p>
  
  <p>How can i solve this? Thanks in advance !!! </p>