Passing parameters to a page
<p>I am dynamically generating an image as shown below. How can I pass parameters to the <code>ImageGen.aspx</code> code from <code>Default.aspx</code> so that the image can be constructed based on that.</p>

<pre><code>  //File:ImageGen.aspx
    public partial class ImageGen: System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Bitmap image = new Bitmap(800, 400);
            //Code to generate image
            image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
        }
    }
</code></pre>

<p>This image is displayed by:</p>

<pre><code> //File: Default.aspx
 protected void Page_Load(object sender, EventArgs e)
 {
      Image1.ImageUrl = "~/ImageGen.aspx";
 }
</code></pre>
