Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am using asp .net C#. I can not clear the textbox. I tried the following way:
Textbox1.text="";
Textbox1.text=string.Empty
But it does not work. Please help me.
Posted
Comments
Nirav Prabtani 13-May-14 8:13am    
Please post code
[no name] 13-May-14 8:25am    
This seems write
Textbox1.Text=""; //make it Text
oliver grace 13-May-14 8:31am    
post your (design) .aspx page code
Thanks7872 13-May-14 8:45am    
Are you trying to clear textbox after any Response statement?
j snooze 13-May-14 17:28pm    
as weird as it may sound the .text property in c# is case sensitive. did you try Textbox1.Text = "" instead of Textbox1.text? Should be a uppercase "T" in Text.

1 solution

Please post the code here that you are using for TextBox.

This code will work perfectly.

Textbox1.Text = "";
 
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