OnClientClick
-
Hi all! I've been using the OnClientClick with the Button control for awhile now to execute JavaScript without causing page validation: Button1.OnClientClick += "javascript:doThis(); return false;"; but one thing still eludes me... Is it possible to execute the OnClientClick event on a textBox? If anyone can figure out any solution, I would be highly grateful!
-= Reelix =-
-
Hi all! I've been using the OnClientClick with the Button control for awhile now to execute JavaScript without causing page validation: Button1.OnClientClick += "javascript:doThis(); return false;"; but one thing still eludes me... Is it possible to execute the OnClientClick event on a textBox? If anyone can figure out any solution, I would be highly grateful!
-= Reelix =-
-
try
TextBox1.Attributes.Add("OnClick", "javascript:alert('This is just sample');");
I Love T-SQL "Don't torture yourself,let the life to do it for you."