可以在 MyControl.ascx 写 javascript用 TypeNumberTextBox.ClientId 返回此对象在html 中的 id
然后用 page.registerscriptstattup("1","<script language=''></script>")