1. Default status of the two text boxes define as disables
2. When inter ID in first text box match the values with your id
SqlDataReader reader = null;
SqlConnection conn = new SqlConnection("Yourconnectionstring");
conn.Open();
SqlCommand cmd = new SqlCommand("select * from yourtable where your_id=@URID", conn);
cmd.Parameters.AddWithValue("@URID",TextBox.Text);
reader = cmd.ExecuteReader();
if(reader!=null && reader.HasRows){
}