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.
https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/webresource.asp

Comments

  • Anonymous
    January 28, 2004
    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.
  • Anonymous
    June 09, 2009
    PingBack from http://toenailfungusite.info/story.php?id=7982