Of course you can. After you created your text box dynamically, simply use its Attributes collection. The control will be sent to the client, where the JavaScript will fire.
That will also answer your second question: The
VB language is used to construct the page at the server; the JavaScript is sent to the client and will fire right there, in the browser.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.