T
Timothy Elvidge
I have moved the following to the parent page for the menu control and I still can't see the Javascript appearing. This is what I am doing:-
protected override void OnPreRender (System.EventArgs e)
{
Page.RegisterClientScriptBlock ("menuscript", "<script language=\"javascript\" src=\"default.js\"></script>\n");
}
I can use the ControlAt and write the script block as a literal control but would like to do this the right way.
protected override void OnPreRender (System.EventArgs e)
{
Page.RegisterClientScriptBlock ("menuscript", "<script language=\"javascript\" src=\"default.js\"></script>\n");
}
I can use the ControlAt and write the script block as a literal control but would like to do this the right way.