Using Bing Maps in Your Web Sites

If you are interested in added Bing.com maps into your web sites, check out the SDK's below: Bing Maps AJAX Control SDK 6.2 This software development kit (SDK) provides programming reference and how-to topics for getting started with the Bing Maps AJAX Control. Bing Maps Web Services SDK 1.0 This software development kit (SDK) provides … Continue reading Using Bing Maps in Your Web Sites

SoCal Code Camp – Fullerton

I hope everyone in southern California is planning to attend this years SoCal Code Camp at Cal State Fullerton on 1/24 - 1/25. It's always a great time and lots of free training! I will also be selling a limited number of my latest book "David McCarter's .NET Coding Standards" at my sessions for $11, … Continue reading SoCal Code Camp – Fullerton

Serialize Your Objects to and from JSON

Here is some easy, generic code to serialize your objects to and from JSON:Public Shared Function JsonEncode(ByVal input As Object) As String Dim serilizer = New DataContractJsonSerializer(input.GetType) Using ms = New MemoryStream() serilizer.WriteObject(ms, input) Return Encoding.Default.GetString(ms.ToArray()) End UsingEnd FunctionPublic Shared Function JsonDecode(Of T)(ByVal input As String) As T Using ms = New MemoryStream(Encoding.Unicode.GetBytes(input)) Dim serilizer … Continue reading Serialize Your Objects to and from JSON

Turn Off Web Service Logging When Using WSE

One of the features I use often with the Microsoft Web Service Enhancements (WSE) is logging. It's a great feature where it logs everything coming in and out of a web service. When someone calls me with issues, the first thing I do is turn this on in the web.config and watch the data coming … Continue reading Turn Off Web Service Logging When Using WSE