How to call the below JavaScript function:
function mySubmit() {
document.getElementById('frm').submit();
}
inside asp.net code behind function:
<%
if(!isPostBack)
{
----I want to call the above JavaScript code here---
}
%>
You don't - javascript is executed on the client.
What you can do is register the script on the postback - which would execute as soon as the page is loaded on the client.
To do this you would use ScriptManager.RegisterStartupScript().