Programatically resetting web form

H

Hrvoje Vrbanc

Hello all!

I have the following question: what's the easiest way to reset the content
of an ASP.NET web form from within some event handler (e.g.
DropDownList_SelectedIndexChanged) in the code behind file?

I have a web form that has plenty of text fields populated by records from a
database. When a week is chosen from a drop down list, results of the query
are displayed in text boxes. However, there are no records in the database
for some of the weeks that could be chosen. I would like all text boxes to
go empty and not to preserve their content when such a week is chosen.

Thank you in advance.

Hrvoje Vrbanc
 

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,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top