WCF One-Way Calls, Callbacks, And Events

Here an article I was reading about some of the new (and from the looks of it… very useful) features of WCF.

One-Way calls, callbacks, and events.

Advertisements

ASP.NET AJAX Errors

I have been getting a few errors when trying to use the asp.net ajax framework.

The one error message is:

Error: Sys.ArgumentTypeException: Object of type ‘Sys_Application’ cannot be converted to type ‘Sys._Application’/

Parameter name: instance

This is caused by having SmartNavigation turned on for the page. 

The other error I was getting was this Sys.ArgumentOutOfRangeException.  Value must be an integer.  Parameter name: X.  Actual value was NaN.

This error is caused by using a “yes” or “no” for “frameborder” for a frame.

Yes and No are valid entries but the framework is expecting a “1” or a “0”.

 

HTTP Compression with IIS 6.0 and ASP.NET

Here are some nice step by step directions for getting HTTP Compression setup in IIS6.

They also link to a nice site that will do a compression test for you on the public side.

I was trying to test stuff that wasn’t public, so I figured out how to test this with Fiddler.

Once you start a trace with fiddler, if you select a session, they will check a box next to the type of compression None/GZIP/Deflate, which was used.

 

Escaping Characters in MailTo

I have recently needed to create some more complex mailto links than people normally use.  I need to populate the subject and body with text that is pulled from a DB, so there are lots of random characters in there like @, #, &, -, _, etc…

Most of these won’t work, and need to be escaped.

The most effective way I found was to use the ascii HEX code in this format:

%2D = “-”

%45 = “E”