You shouldn't use these events together. After all, when a use "double clicks" on your element it is also going to raise the onclick event. I would suggest using one or the other.
As far as adding the events to the textbox you could add the events directly in the IDE, although this is going to raise warnings that are similar to <event> is not valid for element <element> so you could add it via:
TextBox1.Attributes.Add("onClick", "javascriptMethod()");
TextBox1.Attributes.Add("ondblClick", "javascriptMethod()");
hth.
-Doug
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========