Archive for September, 2007
Html attributes, single quote and HtmlAttributeEncode
When you develop your own custom controls do not forget that HtmlAttributeEncode method DOES NOTÂ encode single quote.
MSDN says:
The string result from the HtmlAttributeEncode method should be used only for double-quoted attributes. Security issues might arise when using the HtmlAttributeEncode method with single-quoted attributes.
So you should use double quotes
New Lightweight Dependency Injection Framework for .NET – Ninject
Ninject (earlier known as Titan) is a Lightweight Dependency Injection Framework for .NET inspired by Google’s Guice.
From what I can read it from the docs it is really nice for small projects and allows you to live without creating large xml files for configuration and it also uses .NET 2.0+ DynamicMethods to improve object creation speed.
I am going to give it a shot!