2

i hv designed one user control, and used on my aspx pages whereever needed. my user control does not have tag. now i want to call some javascript function onload of this user control. can anyone tell me how to achieve....... ?

any help appreciated

Regards, Manoj

1 Answer 1

2

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

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

    window.onunload = function() {
        GUnload();
    }
</script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.