Writing a quiz application
<p>im making a quiz application in asp.net using c#. The following code is my start page where on clicking on start i'm redirected to my questions page.
The only reason I've added a start.aspx page ... so I could initialize the
values in the Session.
Here in the page_load event the- request.QueryString["testid"] always resulting to null?
 i.e my if condition is never true and everytime i'm redirected to my "default.aspx" page.
what is the reason?</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace TESTPROJ2
{
    public partial class START : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ArrayList a1 = new ArrayList();

            Session.Add("answerlist", a1);
            Session.Add("quizid", 1);

            if (Request.QueryString["testid"] != null)
            {
                int testID = int.Parse(Request.QueryString["testid"]);
                Session.Add("quizid", testID);
            }
            else
            {
                Response.Redirect("DEFAULT.aspx");
            }
        }

        protected void startB_Click(object sender, EventArgs e)
        {
            Response.Redirect("QUEST.aspx");
        }
    }
}
</code></pre>
