Easy way to get FCKEditor to work inside an ASP.Net AJAX UpdatePanel

The Problem

I had a MultiLine TextBox inside an UpdatePanel and I wanted that TextBox to have rich editing capabilities so I chose FCKEditor. But, now when I do a partial PostBack, the TextBox doesnt retain it value.

An Initial Solution

So, I searched for a solution to this problem and found this post, but it seemed like more of a hack than I prefer.

How to enable Umbraco directory URLs without needing a wildcard mapping in IIS

If for some reason you cannot create an wildcard mapping to ASP.net in IIS, but would still like to have directory URLs in Umbraco there is another way. You can use ISAPI_rewrite (or a similiar tool) to rewrite requests to an extension that is handled by ASP.net. Here are the ISAPI_rewrite rules I use to accomplish this for JLCoady.net:

Loose expectations with NMock2

NMock2 will have a verification failure if all expected calls are not made and if any unexpected calls are made. That last bit can make writing test code rather tedious.

I have a presenter and I’m testing its normal path using a bunch of calls like the following:

Expect.Once.On(view).GetProperty("Name").Will(Return.Value("Widget"));
Expect.Once.On(view).GetProperty("Quantity").Will(Return.Value(3));
Expect.Once.On(view).GetProperty("Price").Will(Return.Value(9.95m));
Expect.Once.On(view).Method("ShowTotal").With(29.85m);

That’s all good, but now I want to test some error conditions, exceptions, bad input, etc., but I dont want to repeat all the property test, especially considering the maintenance issues—if I add a new call to another property in my presenter, all my tests will fail because there was an unexpected call. It would be much nicer to only have to change one test instead of many. Not to mention that testing the same thing ten times is rather stinky.

Using asp.net syntax in an umbraco document template and in XSLT templates

I am about to embark on a project that will be using ASP.NET AJAX extensively, along with the ASP.NET AJAX Control Toolkit. I would love to be able to do the whole thing inside of Umbraco, but, as far as I know, the only way to use these controls is from within a macro.

For example (very simplified), I have a list of items that I want to display. Each item gets a delete button. I would like to put each item into an updatepanel and so when the delete button is clicked, the item simply disappears. There is no need to reload the entire page when we are just changing one small portion of it.

Right now, my options would be to put the entire list inside a macro or write all the ajax myself (which seems like a step backward).

Umbraco’s rich text editor is using my site’s styles

I am creating an Umbraco site with a document type that has rich text (my innovation here is astounding!) and everything was working great on my local. Then I upload it to the production server and the rich text editor now has a navy blue background with black text and is centered—editing is now very difficult. Since the site I am creating has a navy blue background I had an obvious culprit and a quick test by deleting the site’s style sheet confirmed my suspicions.

After tinkering for a while and do some searching, I have found out why this was happening only on the production site and how to fix it.

Subscribe to RSS Feed Follow me on Twitter!