J
John Kotuby
Hi all,
My application consists of a MasterPage which is used for all WebForms. I
then create UserControls to populate the content area for the different
WebForms.
In one complicated UserControl I have a number of Javscript functions.
Everything on the page works fine, until I try to add the OnLoad event
attribute to the Body tag which is generated by the Master Page.
I want to call a Javascript function upon Load of the page, but not for all
webforms, because only this particular control has the function declared.
How can I add the attribute from the code-behind of the User Control? I
can't add it in the declaration in the Master Page, because only one form
contains the code. Also, the JS Function references other document elements
that only reside in the particualr UserControl. Do I have a catch-22 here,
or can it be done?
Thanks to all...
My application consists of a MasterPage which is used for all WebForms. I
then create UserControls to populate the content area for the different
WebForms.
In one complicated UserControl I have a number of Javscript functions.
Everything on the page works fine, until I try to add the OnLoad event
attribute to the Body tag which is generated by the Master Page.
I want to call a Javascript function upon Load of the page, but not for all
webforms, because only this particular control has the function declared.
How can I add the attribute from the code-behind of the User Control? I
can't add it in the declaration in the Master Page, because only one form
contains the code. Also, the JS Function references other document elements
that only reside in the particualr UserControl. Do I have a catch-22 here,
or can it be done?
Thanks to all...