Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear predefined text in textbox c#

Status
Not open for further replies.

Padmajak

Programmer
Jun 7, 2008
10
I have a text box with a predefined text in it I want to clear the text box on focus. I dont know how to proceed. The program is in C#
 
you need to use javascript on the client (this has nothing to do with the server code). register an onfocus attribute to the textbox with a javascript function like this.Value = '';

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top