how to clear all the textboxes in a table on clicking cancel

G

Guest

hi
i have a table in web form wth name table1.i need that wen i click on cancel button all the textboxes in that table becomes empty.ny ideas how to do it,doin in onclien side wud be greatly apppreciated
thnx
amrita
 
H

Hermit Dave

well if you are getting a postback on cancel button.. then you could
manually set them to ""
else you can iterate through the controls using javascript to set them to ''
for javascript... write you function... and use registerclientscriptblock.
make sure you add an attribute to the cancel button so that you have
'onClick:thisisyourfunction()"

--

Regards,

HD
amrita said:
hi
i have a table in web form wth name table1.i need that wen i click on
cancel button all the textboxes in that table becomes empty.ny ideas how to
do it,doin in onclien side wud be greatly apppreciated
 

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,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top