Thread was being aborted when we use
<blockquote>
  <p>System.Threading.ThreadAbortException: Thread was being aborted.<br>
  at System.Threading.Thread.AbortInternal()     at
  System.Threading.Thread.Abort(Object stateInfo)     at
  System.Web.HttpResponse.End()     at
  System.Web.HttpResponse.Redirect(String url, Boolean endResponse)<br>
  at System.Web.HttpResponse.Redirect(String url)     at
  taxi_selection.lnkbtnconfirm_Click(Object sender, EventArgs e)</p>
</blockquote>

<p>I found that the solution for this is </p>

<blockquote>
  <p>Response.Redirect("home.aspx",false);
  but again this error is occurring.</p>
</blockquote>

<p>What is a good solution for this?</p>

<p>my code snippets :</p>

<pre><code>try
    {

        Decimal Amount = 0;
        Int64 CabId = 0;
        String CabName = "";
        String CarImage = "";

        foreach (DataListItem gr in dtlstcars.Items)
        {
            //if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            //{
            RadioButton objcheck = (RadioButton)gr.FindControl("rdbtncarchecked");
            if (objcheck.Checked == true)
            {
                Literal ltrid = new Literal();
                ltrid = (Literal)gr.FindControl("ltrid");

                Label lbtaxiname = (Label)gr.FindControl("lbtaxiname");
                Label lbonewaycarprice = (Label)gr.FindControl("lbonewaycarprice");
                Label lbtwowaycarprice = (Label)gr.FindControl("lbtwowaycarprice");
                Image imgcar = (Image)gr.FindControl("imgcar");



                if (ltrid != null &amp;&amp; lbtaxiname != null &amp;&amp; imgcar != null &amp;&amp; lbonewaycarprice != null &amp;&amp; lbtwowaycarprice != null)
                {

                    if (lbrootype.Text == "One")
                    {
                        Amount = Convert.ToDecimal(lbonewaycarprice.Text);
                    }
                    else
                    {
                        Amount = Convert.ToDecimal(lbtwowaycarprice.Text);
                    }
                }
                CabId = Convert.ToInt64(ltrid.Text);
                CabName = lbtaxiname.Text;
                CarImage = imgcar.ImageUrl;



            }

        }
   if (lbroottype.Text != String.Empty &amp;&amp; lbrouteid.Text != String.Empty &amp;&amp; lbfrom.Text != String.Empty &amp;&amp; lbpickupdate.Text != String.Empty &amp;&amp; lbto.Text != String.Empty &amp;&amp; lbpickupdate.Text != String.Empty &amp;&amp; lbpickuptime.Text != String.Empty)
        {

            Session.Add("BookingDetail", BookingDetail(lbroottype.Text, Convert.ToInt64(lbrouteid.Text), lbfrom.Text, lbto.Text, Convert.ToDateTime(lbpickupdate.Text), lbpickuptime.Text, Convert.ToDateTime(lbreturndate.Text), String.Empty, CabId, CabName, CarImage, Amount, txtPickupaddress.Text, txtDropaddress.Text, txtlandmark.Text, txtname.Text, ddmobilestdcode.SelectedValue, txtmobileno.Text, ddalternatestdcode.SelectedValue, txtalternateno.Text, txtemail.Text, lbdays.Text));//3
            Session.Remove("cart");

            Session.Remove("editcart");
            Response.Redirect("confirm");
        }
        else
        {
            Response.Redirect("home");
        }


    }



    catch (Exception ext)
    {

        String msg = ext.Message;
        da.InsertRecordWithQuery("insert error_tbl values('" + msg + "')");
    }
</code></pre>
