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

Related posts:

  1. jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms Get JqGrid here: http://www.trirand.com/blog/ So far I’ve seen two implementations...
  2. Official JqGrid ASP.Net Web Forms Control Alpha Demo First look at the official JqGrid ASP.Net Web Forms control...
  3. Redirecting using strong types in an asp.net web application project It recently began to annoy me that every time I...
  4. Web Deployment Project IIS Deploy error on Team Foundation Server I got the following on build until recently. Initializing IIS...
  5. Blacknight, Windows VPS, MSSQL and ASP.net So I spent far too much time trying to figure...

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