How to call javascript function for asp.net custom control

i hv designed one custom control and used it in my aspx pages. my custom control has no tag. now i want to call the javascript onload function of this custom control. can anyone tell me how to achieve .......?

any help appreciated

Regards, Manoj

+2


a source to share


1 answer


You can just inject the script directly into the body of your .ascx file, for example:



<script type="text/javascript">
    window.onload = function() {
        initialize();
    }

    window.onunload = function() {
        GUnload();
    }
</script>

      

+2


a source







All Articles