need a code for adding the values

Posted by Abnimkar under ASP.NET on 10/8/2013 | Points: 10 | Views : 690 | Status : [Member] | Replies : 2
i need a code for adding the values from textbox "cheque amt." after each created row and results should be displayed in "total" textbox.




Responses

Posted by: Kmandapalli on: 10/8/2013 [Member] Silver | Points: 25

Up
0
Down
Hi,

you get all the values from the textboxes.
then write a method as calculateAmount and pass these parameters into that method and return the resultant value to the total textbox.

Mark as answer if satisfied.............


Regards,
Shree M.

Kavya Shree Mandapalli

Abnimkar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Brahmam on: 10/9/2013 [Member] Starter | Points: 25

Up
0
Down
for(int i=0;i<datatable.row.count;i++)
{total +=i
}

brahmam

Abnimkar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response