You should pass the same thing on Page Load for Tracking.aspx code for Loading Data. i.e. you want page to Load tID and dID when you click button and page loads.
To Load Values from database just use syntax like below on Tracking.aspx
In my case I used GridView because I Need more than one value. code is below on PageLoad.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindDList();
}
}
void BindDList()
{
string PCode = Request["PCode"].ToString();
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["MyShop"].ConnectionString);
SqlDataAdapter adp = new SqlDataAdapter("Select * from Products where ProductID in (" + PCode + ")",con);
DataSet ds = new DataSet();
adp.Fill(ds);
GView1.DataSource = ds.Tables[0];
GView1.DataBind();
}
Now code for Button Click from where you want to send tID and dID in my case PCode is here.
If you are using Grid View in page then code is like this:
string PCode = "";
Label lblPCode = (Label)DList1.Items[i].FindControl("PCode");
PCode = lblPCode.Text;
Response.Redirect("Tracking.aspx?PCode=" + PCode);
And if you are simply sending IDs from table or Div change your code like this,
string tID = txtTID.Text;
string dID = txtDID.text;
Response.Redirect("Tracking.aspx?tID="+tID+"&dID="+dID);
Good Luck...