Embedding Scripts as Resources in Whidbey

Whidbey has a method of embedding scripts, images, css, htc, etc. as resources in your code-behind assembly.  Nice solution to the problem of versioning script files.  Also, makes deployment easier.

If you’re curious, here’s an article about it.

Comments (2)

  1. Kyle Tinsley says:

    Nice read. Can’t wait to take advantage of these new features. It was also interesting to learn about the 1 yr cache rule “Response.Cache.SetExpires (DateTime.Add(DateTime.Now, TimeSpan.FromDays(365))”. I didn’t know that. I was thinking that it would be great if that value was encapsulated in some constant, maybe on the HTTPCachePolicy class, so that it could become best practice to cache for that period. Also, future versions of asp.net could update that constant to reflect current browser capabilities.

Skip to main content