4
Answers

updating textbox values dynamically

archana shenoy

archana shenoy

12y
2.4k
1

i have 2 template field columns time and total_time in a gridview..

time column has a label in the item template and a textbox in th edit item template..

similarly, total_time has a label in the item template and a textbox in the edit item templte..

what i need is, when the user enters a value in the time textbox,it must get updated in the total_time textbox.. and on edit,when the user changes the value of the time textbox ,dis value must be ADDED to the total_time textbox.. both should be displayed in the label also..

plzzz help asap!!

Answers (4)
3
Deepak Verma

Deepak Verma

NA 1.7k 690.4k 12y

Attachment demo.zip

Hi,

Download the attached code, It'll help you resolve this issue.
0
Deepak Verma

Deepak Verma

NA 1.7k 690.4k 12y
Hi Archana,

You need to manage the state of data source or fetch data after updating accordingly. Actually, it's just an example, you're searching for, not a final solution.

If you need more help, you need to upload your code with data source.
0
archana shenoy

archana shenoy

NA 6 4.2k 12y
and also wen v try to edit the 2nd time, the value in total_time textbox shouldnt be changed.. the new value must be added to the already existing value..
0
archana shenoy

archana shenoy

NA 6 4.2k 12y
ur code is workin fine.. but for me, the total_time label is displayin nothing... its blank.. and even gridview is not getting bound using sqldatasource1...