title: How to pass value from view to controller's action method parameter
body: <p>I am working in <code>MVC5</code> with <code>Kendo UI</code> and <code>jquery</code>. I have bind a multielect textbox with datasource and on button click I want to pass all selected values to controller action method parameter.Below is my code.</p>
  
  <p>In my view:</p>
  
  <pre><code>$("#multiselect").kendoMultiSelect({
              dataSource: dataSource,
              dataTextField: "fullName",
              dataValueField: "Email",
              select: onSelect
          });
  
      var selectedValues = [];
      function onSelect(e) {
          var dataItem = this.dataSource.view()[e.item.index()];
          selectedValues.push(dataItem.Email);
      }
  
      $("#btnshare").click(function () {
          var txtVal = selectedValues;
          window.location.href = "@Html.Raw(@Url.Action("ShareEmail", "Share", new { @multiselectemail = ViewBag.multiselectemail }))";
      }); 
  </code></pre>
  
  <p>IN Controller:</p>
  
  <pre><code>[HttpGet]
      public ActionResult ShareEmail(string multiselectemail)
      {         
          return null;
      }
  </code></pre>
  
  <p>But I never getting values in my parameter. What I am missing? Any help will be appreciated. Thanks in advance.</p>