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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top