Javascript within UserControl
-
Hey guys, I have a web app that uses UserControls. I need to be able to run a javascript function when that UserControl is loaded. The problem I'm having is this when I had the script on a webform, I could run it onBodyLoad, but UserControls don't have body section. So does anyone know how I could call a javascript function on load of the UserControl? Thanks for all your help, Chris Cotton
-
Hey guys, I have a web app that uses UserControls. I need to be able to run a javascript function when that UserControl is loaded. The problem I'm having is this when I had the script on a webform, I could run it onBodyLoad, but UserControls don't have body section. So does anyone know how I could call a javascript function on load of the UserControl? Thanks for all your help, Chris Cotton