javascript and styles within asp:Content

  • Thread starter Thread starter Joe Kovac
  • Start date Start date
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
 
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.
 
Back
Top