By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 1,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <an*******@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.