javascript and styles within asp:Content

J

Joe Kovac

Hi!

I use:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<link rel="stylesheet" href="../javascript/my.css" />
<script src="../javascript/my.js" type="text/javascript" />
...

The problems:
1.) VS doesn't find the files.
2.) VS doesn't like the link to be inside the asp:Content.
3.) I can't switch to the design view because of 2.)
4.) It works !?! (But 3. should work too!)

What shall I change in order not to get complaints from VS?

Thanks

Joe
 
J

Joe Kovac

Joe said:
Hi!

I use:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<link rel="stylesheet" href="../javascript/my.css" />
<script src="../javascript/my.js" type="text/javascript" />
...

The problems:
1.) VS doesn't find the files.

My fault. I didn't add the css and js file to the project yet.
The other problems remain.
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top