Needing to spew out some javascript as a format template I ran into the issue of how do you escape a curly brace for String.Format. Obviously \{ doesnt work. Googling around brought me to this Forum. Guess what a double curly brace works. So the format string becomes "function foo(){{ document.write("{0}"); }}" Technorati tags: . NET, Csharp, Format String Cross-posted from tariqayad.com...