title: how to get partialview data in controller
body: <p>I am using three <code>partialview</code> on a single view, I have a submit button on clicking of which I want to send information to database, I have to retrieve data from all the <code>partialview</code>. </p>
  
  <p>Can You please provide me correct information to do it. </p>
  
  <p>Darin I m using L2S so when I drag my stored procedure, I get code some thing like this in </p>
  
  <pre><code>                 [global::System.Data.Linq.Mapping.FunctionAttribute(Name="SP_Name")]
      public int SP_Name(
                  [global::System.Data.Linq.Mapping.ParameterAttribute(Name="EmployeeID", DbType="Int")] System.Nullable&lt;int&gt; EmployeeID
  {
  
        IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), EmployeeID);
          encounterID = ((System.Nullable&lt;int&gt;)(result.GetParameterValue(293)));
          return ((int)(result.ReturnValue));
      }
  } 
  </code></pre>
  
  <p><strong>Updated</strong></p>
  
  <pre><code>   &lt;script language="javascript" type="text/javascript"&gt;
      $(function () {
          $('#Form1').submit(function () {
              $.ajax({
                  url: this.action,
                  type: this.method,
                  data: $(this).serialize(),
                  success: function (data) {
                      var message = data.Result;
                      $('#Result').html(message);
  
                  }
              });
              return false;
          });
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>In my Controller I am using </p>
  
  <pre><code>public ActionResult Index(FormCollection frm)
      {
       My Code ---------------------  
       return Json(new { Result = "Success" });
      }
  </code></pre>
  
  <p>When I return this I m getting a file in post back and it ask me to save it.
  I have checked using <code>flidder</code>, in URL it shows me that the path as <code>/</code> only
  where as If I fill any particular <code>partialview</code> It shows something like <code>/Controller Name/Partialview</code></p>
  
  <p>Can You help me with this problem</p>