Whoa!, Alpha 5 just went out a week ago and I’m now deploying Alpha 6. What happened? In a word, good stuff. I discovered earlier last week that you can embed resources in binaries and serve them up in web pages. Say what? Ok, let’s look at an example. Let’s say you have an static image of a help button you want to display in your ASP.NET control. Easy enough but the image has to exist in a specific location on the server in order to link to it. That means when you deploy your control, the image has to be in the correct location or it won’t display.
There are two problems with this scenario. First it requires that you ship an extra file with your deployment and second, it has to be installed on the server in the correct location to work. I think it makes more sense to embed the image in the control assembly and serve it up on demand. Question is, how do you link to an embedded resource from a web page?
ASP.NET has a builtin HTTP handler called WebResource.axd that allows you to build links to embedded resources. This is like gold as far as I’m concerned. I won’t go into details here since the steps are a bit complicated. These two blogs links, Jeff’s Junk and 4 Guys From Rolla supply instructions on how to use WebResource.axd to link to embedded resources.
In addition, I get a wysiwyg text editor with source that I can tweak. I’ve wanted something like this for Bloget for quite sometime but was unwilling to ship a bunch of extra files with the distribution. Now I get my source and can embed it to (there’s a pun in there somewhere).
To summarize, Alpha 6 sports a brand new builtin Wysiwyg editor and is a single binary distribution. Download it now and check it out. Alpha 7 will introduce new controls like a blog roll and a second type of archive control so stay tuned and as always, send feedback. - Mike