how to refresh the code present in try and catch
<pre><code>protected void DropDownList15_SelectedIndexChanged(object sender, EventArgs e)
    {
        try{

        if (DropDownList15.SelectedIndex == 1)
        {
            p = "Select  Date_of_birth From Employee_Temp where DateDiff(year,Date_of_birth,getdate())&gt;=20 And DateDiff(year,Date_of_birth,getdate())&lt;=30";
        }
        else if (DropDownList15.SelectedIndex == 2)
        {
            p = "Select  Date_of_birth From Employee_Temp where DateDiff(year,Date_of_birth,getdate())&gt;=31 And DateDiff(year,Date_of_birth,getdate())&lt;=40";
        }
        else if (DropDownList15.SelectedIndex == 3)
        {
            p = "Select  Date_of_birth From Employee_Temp where DateDiff(year,Date_of_birth,getdate())&gt;=41 And DateDiff(year,Date_of_birth,getdate())&lt;=50";
        }
        else if (DropDownList15.SelectedIndex == 4)
        {
            p = "Select  Date_of_birth From Employee_Temp where DateDiff(year,Date_of_birth,getdate())&gt;=51 And DateDiff(year,Date_of_birth,getdate())&lt;=60";
        }

        cmd1 = new SqlCommand(p, con);

        rd = cmd1.ExecuteReader();
        string s1 = "(";

        while (rd.Read())
        {

            s1 += "'" + Convert.ToDateTime(rd[0].ToString()).ToString("MM/dd/yyyy");
            s1 += "',";

        }
        //string age1 = Convert.ToString(p);
        con.Close();

        string s2 = s1.Substring(0, s1.Length - 2);
        s2 += "')";
        //  query = "Select Name,PIN,Designation,Gender,Group_Name,Post,Cadre,dob as 'Age' from Employee_Temp where dob in " + s2;
        Session["qry"] = s2;
        }
        catch(Exception)
        {

        }
    }
    protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            if (DropDownList7.SelectedIndex == 1)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&lt;=10 ";
            }
            else if (DropDownList7.SelectedIndex == 2)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&gt;=11 And DateDiff(year,Lastec,getdate())&lt;=20";
            }
            else if (DropDownList7.SelectedIndex == 3)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&gt;=21 And DateDiff(year,Lastec,getdate())&lt;=30";
            }
            else if (DropDownList7.SelectedIndex == 4)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&gt;=31 And DateDiff(year,Lastec,getdate())&lt;=40";
            }
            else if (DropDownList7.SelectedIndex == 5)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&gt;=41 And DateDiff(year,Lastec,getdate())&lt;=50";
            }
            else if (DropDownList7.SelectedIndex == 6)
            {
                p = "Select  Lastec From Employee_Temp where DateDiff(year,Lastec,getdate())&gt;=51 And DateDiff(year,Lastec,getdate())&lt;=60";
            }
            cmd1 = new SqlCommand(p, con);

            rd = cmd1.ExecuteReader();
            string s3 = "(";

            while (rd.Read())
            {

                s3 += "'" + Convert.ToDateTime(rd[0].ToString()).ToString("MM/dd/yyyy");
                s3 += "',";

            }
            //string age1 = Convert.ToString(p);
            con.Close();

            string s4 = s3.Substring(0, s3.Length - 2);
            s4 += "')";
            //  query = "Select Name,PIN,Designation,Gender,Group_Name,Post,Cadre,dob as 'Age' from Employee_Temp where dob in " + s2;
            Session["qry1"] = s4;
        }
        catch(Exception )
        {

        }
</code></pre>

<p>the problem is that when i redirect to my result in the next page and then go back and again click the results button the same result remains what do i do</p>
