Problem using ScriptManager.RegisterStartUpScript in user control - Script Error "function is not de
- by poojad
I have a aspx page which contains a User Control uc1 ans within uc1, there is another user control uc2. Now I need to call a javascript function in the uc2's page load.
(I understand that the Pages are not properly designed, but I am sorry as this is an old application, I am not supposed to make any changes in the design)
I am doing this using ScriptManager.RegisterStartUpScript as I have an update panel, but the function is not being called and the script error "load is not defined" is fired. (load is the javascript function in uc2)
Can anyone help me out with this?
Thank you.