I have the function put here like below:
$(document).ready(function () {
UserControlNameInit();
});
The script are put in the following and the block is in the .ascx page.
<script type="text/javascript">
</script>
However, the function UserControlNameInit() does not run when the page loads. It is showing in the page source. I can still call this function through FireBug console by manually typing the name of the function.
I did the same way with other user controls, and it works. Just 1-3 user controls are not working...
Any possible reason for this? Thanks!