Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms

August 12, 2009

I had a problem where I wanted to use the intellisense version of JQuery when I am writing the code, the normal version when I debug it and the minified when it actually hits production.
I also wanted all this done on my master page so the path to the js file had to be relative to the site root and not the page it was defined on.

I found the solution here:

http://damianedwards.wordpress.com/2009/03/28/setting-up-jquery-for-aspnet-web-forms-projects/

It essentially revolves around using the script manager to reference the JS files and using naming conventions so it knows which one to open where.

Edit: Don’t forget to download the hotfix or the -vsdoc won’t work.

  • Share/Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

tags: , , ,
posted in Programming by admin

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org