JavaScript problem used in Master Pages and Subfolders

T

Tatyana

Hello,



I was wondering if anybody know how to fix the problem with JavaScript in
subfolders.

I have the following in

<body>

<script type='text/javascript' src='Javascripts/var.js'
language="javascript"></script>

......

</body>

This works if the pages are in the main root folder. Once I create a
subfolder I can no longer see javascript menu.

I would like to be able to place several files into the subfolders to keep
the project clean but not able to do this until I fix the problem with
JavaScript.

I'm using a Master page in the project.

Any suggestions? I tried src='~/Javascripts/var.js' this doesn't work and if
I make it a server control the language fails since te defind language is
C#.

Thank you,

Tatyana
 

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
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top