Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

javascript in asp.net web project

Posted on 2011-03-18
1
Medium Priority
?
391 Views
Last Modified: 2013-12-06
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
Comment
Question by:dhenderson12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
foobarr earned 2000 total points
ID: 35165962
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the past decade, as Internet security has become a chief concern of IT professionals, one of the most common questions administrators and users ask is, “Which is more secure, SFTP or FTPS?” In short, both file transfer protocols offer a high…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question