Hi
For Rad toolbar the following lines of code is used in aspx page to attach the event onClientClick. Please can u tell me how we can move this line of code into server side i.e, aspx.cs file?
<script language="javascript" type="text/javascript">
<%= tbDebtRequirement.ClientID %>.attachEvent(""OnClientClick"",""ToolBarEvents"");
</Script>
I tried the following in Code behind(.cs) file. But it does not work..
string sJscript = "";
sJscript = @"'<%= tbDebtRequirement.ClientID %>'.attachEvent(""OnClientClick"",""ToolBarEvents"");";
this.ClientScript.RegisterStartupScript(typeof(Page), "jj", sJscript, false);
This wont give any javascript error but the event will not get fired.
Thanks
Siva Kumar KB