txtPurchase.Text="5000";
txtSales.Text="6000";
Now Genrate TxtSales Selection Changed Event(double click on textbox in design page to genrate event)
and
Write Code in That Event.
protected void txtSales_TextChanged(object sender, EventArgs e)
{
tProfit.Text=Convert.ToString(Convert.ToInt32(txtPurchase.Text)+Convert.ToInt32(txtSales.Text));
}