RichP's Blog

The .Net ramblings of Richard Penrose

Archive for May, 2010

Script Tags in Asp.Net MVC

without comments

Just a quick tip really, when adding Javascript tags to you Asp.Net MVC master page use the following syntax rather than hard coding the path:

[sourcecode language='c#']

[/sourcecode]

This allows the Asp.Net engine to resolve the path and is more reliable than hard coding it. Thanks to Steve Fenton for this gem.

Written by admin

May 19th, 2010 at 10:40 am

Posted in Asp.Net