forum

Home / DeveloperSection / Forums / Sum Textbox Values

Sum Textbox Values

Sheen Buhay816212-Oct-2011
Hi,
I need to know on how to add multiple values using only one textbox.

Please refer to this screenshot: http://imageshack.us/photo/my-images/440/breakdown.jpg/

The form has Descr (TextBox1) fields. The Amount column is our (TextBox2) and Total is our (TextBox3).

The example has 6 entries based on Descr (Ingredient cost, Tuition Fee, Elect cost, Lab fee, Misc and NCII Assessment) where all entries are taken by textbox2. Each Descr has a corresponding Amount value. So, we need to enter 6 times to satisfy our data entry and display the sum of all values into (textbox3).

Please see illustration : http://imageshack.us/photo/my-images/819/sumtbvalues.jpg/

Where Amount represents (Ingredient cost, Tuition Fee, Elect cost, Lab fee, Misc and NCII Assessment) costs.

Any help are highly appreciated.

Tags: Visual C#.net, ASP.net, Web Application

Thanks

Updated on 24-Oct-2011

Can you answer this question?


Answer

5 Answers

Liked By