Amr Elgarhy
Amr Elgarhy

Reputation: 68942

How make JQuery intellisense work in aspx file?

I know how to make the intellisense work in a .js file using this "/// <reference path="jquery-1.3.2-vsdoc.js" />" but how to make it work in an aspx file.

I writing some jquery code in the page html itself and want to make the intellisense work there

Upvotes: 2

Views: 818

Answers (1)

Geoff
Geoff

Reputation: 9340

It should work as long as you have the script reference in you aspx page, and VS can find that file in the path you specify.

<script src="jquery-1.3.2.js" type="text/javascript"></script>

That said, best practice would be to avoid putting javascript in the page itself. Create a separate .js file to contain all of your javascript.

Upvotes: 7

Related Questions