Not able to get values when using PostBackURL in aspx page
<p>I have a page with a textbox and a button. I have set a postbackurl on this button and written the following code on the load event of destination page:</p>

<pre><code>if (PreviousPage != null)
        {
            string name = ((TextBox)PreviousPage.FindControl("TextBox1")).Text;

            Response.Write(name);
        }
</code></pre>

<p>While using debugger, I found that I get following error: </p>

<pre><code>Object reference not set to an instance of an object. 
</code></pre>

<p>I am not able to figure out where the problem is because when I hover on PreviousPage, I can see the first page name and when I see the value of TextBox1 it shows <code>{System.Web.UI.WebControls.TextBox}</code> and not the value that I have entered! </p>
