How to pass a generic collection from one page to another?
<p>I am working in Asp.net.</p>

<p>In Page1.aspx, I have </p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        List&lt;Person&gt; lstPerson = new List&lt;Person&gt;();
        lstPerson.Add(new Person { Name = "N1", Age = 20 });
        lstPerson.Add(new Person { Name = "N2", Age = 30 });      

        Response.Redirect("Page2.aspx?Param=" + lstPerson);
    }
</code></pre>

<p>And in Page2.aspx, I have</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["Param"] != null)
            {
                var xx = Request["Param"];
            }
        }
    }
</code></pre>

<p>I know that, it is returning a string (System.Collections.Generic.List`1[Person] for xx value).</p>

<p>How can I get the object back in Page2.aspx?</p>

<p>N.B.~ I cannot use Session(it's a restriction).But any other mechanism will do?</p>

<p>Thanks.</p>
