Q:

Clearing a TextBox in ASP.NET

I have webpage where there is textbox with some default value. I have to clear that value from the textbox. I have two options:
textbox.text="";

or
textbox.text.remove(0,length);

Which one should I use? Does it make any impact on page performance (there are many textboxes placed on my page)?

A:

The best way to do this is
textbox.text = string.Empty;

Also remember that string type is immutable!

A:

It makes no difference - do what is most readable for you and your colleagues.
Many prefer to use string.Empty.

