For adding Client Events in ASP control you can add an attribute
HTML:
<body>
<script language="jscript" type="text/jscript">
function test()
{
alert ("hai");
}
</script>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtTest" runat="server" text="Click Here"></asp:TextBox>
</div>
</form>
</body>
</html>
C# :
protected void Page_Load(object sender, EventArgs e)
{
if ( !IsPostBack )
txtTest.Attributes.Add( "onclick", "test()" );
}
If this does not help you please explain your scenario ... may be try to paste some code too....
Bye.
If this resolves your issue please mark this post as answered as it will let others know that this post is closed.