You'd do it in code (because normal ASP.NET Button the event handler is
named as OnClick for server.side click event handler.
Example:
Button1.Attributes("onclick") = "alert('This is raised before postback')"
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Sandeep" <ss***@uptecnet.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi
I want to write onclick event on a button(a web control) ,also i want to
call a client side function on the click event
how to write that how to differentiate between these two events
Will it be like that
<asp:button id="ss" onclick="javascript:ss()" onserverclick="btn_click()">
Regards
Sandeep