Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The second parameter taken by <a href="http://msdn.microsoft.com/en-us/library/dd460291.aspx" rel="nofollow noreferrer">RedirectToAction</a> is not a model, it is a route. That's why you are not receiving what you expect in your <code>_ProductSearchList</code> action.</p> <p>I'm not quite sure that something like this would work because i don't know how a list of complex objects could be serialized in the url (or even if this is recommanded), but here is what would be expected :</p> <pre><code>return RedirectToAction("_ProductSearchList", new { ledge = ledge }); </code></pre> <p>To pass your list, you have the <a href="http://msdn.microsoft.com/fr-fr/library/dd394711%28v=vs.100%29.aspx" rel="nofollow noreferrer">TempData</a> option (quote from MSDN) :</p> <blockquote> <p>An action method can store data in the controller's TempDataDictionary object before it calls the controller's RedirectToAction method to invoke the next action. The TempData property value is stored in session state. Any action method that is called after the TempDataDictionary value is set can get values from the object and then process or display them. The value of TempData persists until it is read or until the session times out. Persisting TempData in this way enables scenarios such as redirection, because the values in TempData are available beyond a single request.</p> </blockquote> <p>Don't forget to take a look at <a href="https://stackoverflow.com/questions/12422930/using-tempdata-in-asp-net-mvc-best-practice">Using Tempdata in ASP.NET MVC - Best practice</a> before using it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload