Getting jQuery to work with MasterPages

Maybe someone from the ASP.Net community can enlighten me, I have always had the hardest time getting the script, css, etc working/rendering correctly when used on the masterpage. On the masterpage I always have to use an absolute path on the script or link tag or generate the script/link tag from the code behind on the masterpage in order for it to render/execute properly. Is there a better method. I recently ran accross this using jQuery trying to get the intellisense to work on the pages inheriting the master page.This is what I came up with. Seems like a hack. Any suggestions?

MasterPage head tag:

Head

I read Scott G's post on jQuery and intellisense and it works great for non-masterpaged files.  Does anyone else have methods that don't seem so hacked.

4 Comments

Comments have been disabled for this content.