• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

javascript in asp.net web project

I have created a new asp.net web project.  I have serveral .html files that need to reference and call functions in a common javascript file.  I am using a master page for the site at the root level.  

In the old web site, the "master page" was a frames page that included the common.js file and all child web pages called functions by using top.appData.theFunction() (appData is an object defined in the common.js file).  

I would like to keep this functionality, since I really don't want to turn all of these html pages into .aspx pages if I don't have to.  

Any help appreciated.
0
dhenderson12
Asked:
dhenderson12
1 Solution
 
foobarrCommented:
Well if you are using a master page you will need to include a contentplaceholder.  So you will need to create those html pages into aspx pages so that you can use that contentplaceholder control.  As long as you include that js file in your master page, whatever pages that include that master page will have access to its functions

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now