Is it possible to raise “onclientclick” event automatically with program.
<asp:LinkButton ID="lnk" runat="server" OnClientClick="javascript:show();return false;" Text="here"></asp:LinkButton>
Here i need to call show() function in some areas of program. I know to call using Page.ClientScript.RegisterStartupScript. But i dont want to use that. Is there any possibility?
Thank you
you can try like this
and javasript like this.
if you want to return some thing from your javascript, you can try like this.
javascript with return values
Edited : you can add like this. in your code file.