Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 09, 2007 03:37 PM|LINK
indeed TextBox doesn't have Click event at server-side. One reason is that it wouldn't necessarily be reasonable to cause a postback to clear a TextBox (server-side event requires server-side action to occur e.g also a postback).
action to clear the TextBox. Either set this on aspx
<asp:TextBox ID="TextBox1" runat="server" OnClick="this.value=''" />
or this in code
Me.TextBox1.Attributes("onclick") = "this.value=''"