Here is a sample
<asp:button id="btn1" runat="server" text="submit" />
Javascript function to be called onMouseOver event
function Samplefunction()
{
alert('On mouse over event!');
}
In your code behind file you include the following code in Page_Load event handler
btn1.Attributes.Add("onmouseover", "Samplefunction()");