Masterpages and javascript
-
I am having a problem that is probably easy but has me stumped. I am using ASP.Net 2.0 and have a master page with a menu system and then pages inherit from it. But I have a page I would like to put javascript on. I know on buttons I can add the attribute OnClientClick="return confirm('Are you sure')" but the script I need is far more complex. If I put in a webcontrol everytime it runs it fails with an error saying my tag needs the runat="server" attribute which the masterpage does have and I can't put it in a page that uses the master or the webcontrol since the head tag isn't allowed in either one... Any suggestions? thanks in advance, Al
-
I am having a problem that is probably easy but has me stumped. I am using ASP.Net 2.0 and have a master page with a menu system and then pages inherit from it. But I have a page I would like to put javascript on. I know on buttons I can add the attribute OnClientClick="return confirm('Are you sure')" but the script I need is far more complex. If I put in a webcontrol everytime it runs it fails with an error saying my tag needs the runat="server" attribute which the masterpage does have and I can't put it in a page that uses the master or the webcontrol since the head tag isn't allowed in either one... Any suggestions? thanks in advance, Al
I have added script tags right under ther content tabs and that seems to work. "People who never make mistakes, never do anything." My Blog
-
I have added script tags right under ther content tabs and that seems to work. "People who never make mistakes, never do anything." My Blog