Solved

javascript in asp.net web project

Posted on 2011-03-18
1
379 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
1 Comment
 
LVL 7

Accepted Solution

by:
foobarr earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
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…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now