Click here to Skip to main content
15,909,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello frens, i want to call the leave action of textbox on button click. what i have done is like this...
C#
private void txtnowpaying_getpaymentform_Leave(object sender, EventArgs e)
       {
           decimal nowpayingamount = Convert.ToDecimal(txtnowpaying_getpaymentform.Text);
           decimal remainingdue = Convert.ToDecimal(txttotalbillamount_getpaymentform.Text) - nowpayingamount;

           txtcurrentdue_getpaymentform.Text = remainingdue.ToString();
       }


now i want to call this leave action on button click how can i do this please help
with regards bishnu
Posted

1 solution

Hi,

try this,
C#
Protected void Button_Click(object sender, EventArgs e)
{
   txtnowpaying_getpaymentform_Leave(txtnowpaying_getpaymentform, new EventArgs());
}


hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900