L
Larry Rebich
I'm using some Java Script I found that supports a 'back' button on my
ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the
Java Script in a Java Script file [.js]. The thought was that I could use
this script in other pages. So I put a reference to the script file in the
<head tag of the Master page. But that does not work because the <head tag
of the Master page also contains a 'runat=server' statement. And only one
<head statement is allowed.
Next I tried referencing the script file in the Asp.Net page and I get an
'Error on page' message at run time when I click the 'back' button. If I put
the script in the asp.net page then it works fine.
Is there a way to reference a script file in an asp.net page that uses a
master page?
Cheers,
Larry Rebich
ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the
Java Script in a Java Script file [.js]. The thought was that I could use
this script in other pages. So I put a reference to the script file in the
<head tag of the Master page. But that does not work because the <head tag
of the Master page also contains a 'runat=server' statement. And only one
<head statement is allowed.
Next I tried referencing the script file in the Asp.Net page and I get an
'Error on page' message at run time when I click the 'back' button. If I put
the script in the asp.net page then it works fine.
Is there a way to reference a script file in an asp.net page that uses a
master page?
Cheers,
Larry Rebich