Understanding CDATA in XML

Posted on 19 September 2009 | No responses

CDATA sections in XML are often misunderstood. Programmers get the wrong advice, or they hear that strings should go in CDATA sections because they contain Unicode or non-ASCII characters. All nonsense, CDATA is only a convenience in writing and everything written in CDATA can be written without CDATA — read article

Comparison Chart of Online Regular Expression Testers, overviews and reviews

Posted on 17 September 2009 | 7 responses

Online regular expression testers, information, programs and tools can help a great deal in finding the right regex for a given task. Unfortunately it can be daunting to find the right one. How do you know whether a free online regexp tool is javascript, or what server side language or flavor was used? Perl-style regexes, or old-school sed/awk? This article summarizes all known online regex tools and their abilities and is updated regularly — read article

Storing / Disruption of service at XS4ALL Provider, Sunday Sept 6 2009

Posted on 6 September 2009 | 3 responses

(en|nl) bilingual / tweetalige post
(en) A country-wide ADSL disruption of service since 12:58 September 6, 2009, took many people in The Netherlands offline. After about 24 hours, all seems good again.
(nl) Een landelijke storing van KPN / XS4ALL sinds 12:58 uur op 6 september 2009. XS4All geeft nauwelijks en erg laat informatie. Via Twitter en nieuwsberichten komen we langzaam achter de feiten. Na 24 uur is het sein brand meester gegeven — read article

Overview of type suffixes in C# and VB.Net

Posted on 27 August 2009 | 1 response

Remembering type suffixes if your daily job is working with VB.NET or C#.NET is not easy. D can stand for Decimal in VB and for Double in C#. A C is not for Currency but for Char and M is not Million but Decimal in C#. Still with me? An overview of all these unintuitive type suffixes along with prefixes and plain text modifiers is provided here for convenience. In addition, an explanation of the secrets, lies and bugs these suffixes can introduce — read article

Tip: Force UTF8 or other encoding for XmlWriter with StringBuilder

Posted on 21 August 2009 | 15 responses

When you use an XmlWriter or XmlTextWriter and the output target is StringBuilder or StringWriter then it is not possible to set the encoding to anything else then UTF-16. This tip explains why this is designed this way by Microsoft and offers you a way around this all-too restrictive behavior of the XmlWriter, to allow — read article

Tip: regenerate aspx.designer.cs files when corrupted

Posted on 28 July 2009 | 14 responses

When your designer.cs or designer.vb file gets corrupted, you can regenerate its contents by following the three simple instructions in this tip, illustrated with screenshots — read article

Tip: Solving error “Could not load type” in Visual Studio

Posted on 17 July 2009 | 19 responses

If you change from ASP.NET Website to an ASP.NET Web Application, or if you add some external aspx, ascx or master pages, you can receive the Could not load type error. Before you start banging your head against the wall, read on for a simple solution: change attribute CodeBehind in CodeFile in the header of your asp.net file — read article

Generation of designer file failed, unable to create type telerik RadScriptManager

Posted on 15 July 2009 | 1 response

You may get the following warning when you take over someones project where Telerik controls are used, and you haven’t installed Telerik yourself:
Generation of designer file failed: Unable to create type 'telerik:RadScriptManager' ... [snip]. This article shows how you can simply solve this problem — read article

« newer postsolder posts »

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Copyright © Under My Hat.

Other Recent Hatties (alphabetically)