Web.config javascript

G

Guest

Hi,

Can I add javascript path to a web.config file?

Right now I have to add this to each page.

<script src="AC_RunActiveContent.js" type="text/javascript"></script>

If so, can someone give me an example? Do I need to add anything to the
page if I can add this to the config file?

Thanks

Andre
 
G

Guest

Yes, you can store any string you want in your web.config (usually in the
appSettings section). But you'll need to render your <script src=.... from
the server side code.
Peter
 
E

Erik Funkenbusch

Hi,

Can I add javascript path to a web.config file?

Not without also changing all the web pages to include this configuration
entry, which sort of defeats the purpose.
Right now I have to add this to each page.

<script src="AC_RunActiveContent.js" type="text/javascript"></script>

If so, can someone give me an example? Do I need to add anything to the
page if I can add this to the config file?

Why not juse use project search and replace to replace </head> with
<script...</script></head>
?
 
G

Guest

Thanks, I have a class where I call my flash anyway, i can add it to there.
I just wanted to do it in web.config. Thanks to the new IE patch, my flash
will not activate unless I add more javascript.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top