Don't think there is an OnClientClick event for the textbox.
This markup
<asp:TextBox ID="TextBox1" onfocus="this.value='';" />
will work but will cause the designer to complain.
This code-behind
TextBox1.Attributes["onfocus"]="this.value='';";
will work with no complains
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Alexey Smirnov" <(E-Mail Removed)> wrote in message
news:593c1181-4a35-435f-a8b1-(E-Mail Removed)...
On Feb 28, 9:14 am, Iain Wilson <Email.IainWil...@gmail.com> wrote:
> Hi All
>
> I have a number of textboxes and a textarea on a web form - Using C#.
>
> By default each component contains some text - a hint for the user
> entering the data.
>
> What I need to do is clear each component as the user's cursor enters
> the component - ie I need an On-Entry event -
>
> Can anyone enlighten me as to how I do this
>
> Many thanks in advance for help offered
>
> Iain
try this
<asp:TextBox ID="TextBox1" OnClientClick="document.getElementById('<%=
TextBox1.ClientID %>').value='';"