I have a JavaScript function in aspx page and this aspx page had several ascx control in it.
I need to call that JavaScript function from one of its ascx control code behind file. I tried below approach but it is not working as expected. Any suggestion please.
in aspx page:
<script type="text/javascript">
function Disable()
{
// some code
// return;
}
in ascx code behind file:
ScriptManager.RegisterClientScriptBlock(Me.Page, Me.GetType(), "Script", "Disable();", True)
Can someone please let me know how to resolve this?