Click here to Skip to main content
15,888,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I make the data entered in the text box disappear after refreshing the page?

What I have tried:

i tried change properties textbox
Posted
Updated 10-Dec-20 7:56am

It just takes one line of code, TextBox.Text= String.Empty. As to where you put it, perhaps in the Page Load event?
 
Share this answer
 
You do not need any code. That is the default behavior of a web page. If text is remaining then you have code written to do so and will need to change it but since we cannot see anything you have done there is not much else to tell you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900