protected void txtamount_TextChanged(object sender, EventArgs e) { if (this.txtamount.Text.Length > 0) { Class1 cs = new Class1(); txtamtword.Text = cs.RupeesToWord(Convert.ToDouble(txtamount.Text)).ToString(); } }