is this possible?

G

Guest

hey all,

let's say i have a datagrid.
in that datagrid, i have a template column with a textbox in the ItemTemplate.
i've attached a client-side script to the textbox ("onChange" event).

when i run this i bind the datagrid to a dataset.
And when I change a value in the textbox is there a way to retrieve in
javascript the value that was in the textbox before the change


thanks,
rodchar
 
M

Morgan

One way around this is to put either a hidden lable or textbox next to the
control you want to audit, bind it to the same field as the visible control,
and reference that control in the javascript.
 
G

Guest

Thank you very much. This helped.

Morgan said:
One way around this is to put either a hidden lable or textbox next to the
control you want to audit, bind it to the same field as the visible control,
and reference that control in the javascript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top