Save values between 'Steps' in Wizard ASP.NET
<p>I have 3 steps in Wizard. I'm not able to solve this problem yet with the FK constraint.</p>

<p>I need the value of EmpID from Step1 to be saved, so that I can use that value in later steps to insert it into other tables. When I did this I got an error-</p>

<pre><code>public void Insertaddress()
        {
            String KKStech = @"Data Source=USER-PC\SQLEXPRESS;Initial Catalog=KKSTech;Integrated Security=True";
            SqlConnection conn = new SqlConnection(KKStech);
            String str = @"insert into Contact (Addressline1, Addressline2, CityID, EmpID)
                                        values(@Addressline1, @Addressline2, @CityID, @EmpID)";
            SqlCommand cmd = new SqlCommand(str, conn);
            cmd.CommandText = str;
            cmd.CommandType = CommandType.Text;

            try
            {
                conn.Open();
                cmd.Parameters.AddWithValue("@Addressline1", TextBox15.Text);
                cmd.Parameters.AddWithValue("@Addressline2", TextBox17.Text);
                cmd.Parameters.AddWithValue("@CityID", DropDownList2.SelectedValue);
                **cmd.Parameters.AddWithValue("@EmpID", TextBox1.Text);**
                cmd.ExecuteNonQuery();
            }
            catch (System.Data.SqlClient.SqlException ex)
            {
                string msg = "Insert Error:";
                msg += ex.Message;
                throw new Exception(msg);
            }

            finally
            {
                conn.Close();
            }

        }
</code></pre>

<p>Error:</p>

<pre><code>    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Contact_Emp". 
The conflict occurred in database "KKSTech", table "dbo.Emp", column 'EmpID'.
</code></pre>

<p>The value of EmpID comes from Step1 (From TextBox1 control)</p>
