Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys,

My name is Ram,

i have one problem with ontextchangedEvnet for Textbox,i will explain below briefly :

i have Product table in that rows are 'Product1','Product2'..etc.
i want bind above table data dynamically productname with textbox and ontextchangedEvnet event has to take automatically.i am using textbox for entering the amount.when i enter the amount in textbox then total has to be calulate automatically depending upon textbox amount.suppose first i enter 500 in Product 1 textbox then Total will be 500,for product 2 Textbox i enter 1000
then total will be 1500..like this system will calculate automatically.

please help me.....

if you any doubts send email to nunnaramudu@gmail.com
Posted
Updated 23-May-15 1:27am
v2
Comments
Rojalin Sahoo 23-May-15 8:08am    
I am not clear about your binding with textbox requirement.

1 solution

This is very easy with JavaScript. On TextBox onchange Event[^], just calculate and assign that to "total" TextBox.
 
Share this answer
 
Comments
Ram Nunna 1-Jun-15 8:00am    
thanks for your support..

i wanted bind dynamically asp.net controls in c# itself.i don't have option to use javascript.
But why you want to go to server side, if this is really very easy to do in JavaScript. Trust me, for these kind of requirements, no need to go to server side again and reload the page. No need !!!
Ram Nunna 8-Jun-15 6:22am    
Thanks Dash sir,
i was using java script with ontextchanged event.it was very easy.

thanks for you support!!!...
Most welcome buddy. Please accept the answer. :)
Ram Nunna 8-Jun-15 6:33am    
thanks sir..

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