title: pass values from a view to action in another controller
body: <p>I am using @html.Actionlink() to build a link which redirects to an action in another controller(not the original controller with view) Below is my statement.</p>
  
  <pre><code>@Html.ActionLink(@orderNumber.ToString().Trim(), "SearchResult", "OrderStatus", @orderNumber.ToString(), new { target = "_self" })
  </code></pre>
  
  <p>but on clicking on the view i get an exception:</p>
  
  <pre><code>The resource cannot be found.
  Description: HTTP 404. The resource you are looking for (or one of its dependencies)     could have been removed, had its name changed, or is temporarily     unavailable.  Please review the following URL and make sure that it is spelled correctly. 
  
  Requested URL: /OrderStatus/SearchResult
  </code></pre>
  
  <p>though i have a controller with name <strong>OrderStatus</strong> having an action with name <strong>SearchResult</strong></p>
  
  <p>Am i missing some syntax?</p>
  
  <p>searchresult method:</p>
  
  <pre><code>[AcceptVerbs("POST")]
  public ActionResult SearchResult(FormCollection collection)
      {
          try
          {
              string orderNumber = collection["searchItem"].ToString();
  
              if (string.IsNullOrEmpty(orderNumber))
                  return View("OrderStatusSearch");
  
              ////obtain sales oder header for paased order number
              #region sales order header
              orderNumber = orderNumber.Trim();
  
              ObjectParameter[] parameters = new ObjectParameter[1];
              parameters[0] = new ObjectParameter("OrderNumber", orderNumber);
  
              var headerQuery = dbContext.ExecuteFunction&lt;Models.SalesOrderHeader&gt;("uspGetHeaderDetails", parameters);
  
              Models.SalesOrderHeader salesOrderHeader = new Models.SalesOrderHeader();
              salesOrderHeader = headerQuery.SingleOrDefault();
  
              ////// return empty view if sales ordr header is null
              if (salesOrderHeader == null)
                  return View("EmptySearch");
              #endregion
               ....................
  
              ////create sales order to be passed to view
              #region Create Sales Order
              {
                  Models.SalesOrder salesOrder = new Models.SalesOrder();
  
                  salesOrder.salesOrderHeader = salesOrderHeader;
                   ..................
                  return View(salesOrder);
              }
              #endregion
          }
          catch (Exception e)
          {
              return View("EmptySearch");
          }
      }
  </code></pre>