October 15, 2009

Overcoming the “Most Vexing Parse” Problem

he C++ literature uses the phrase “most vexing parse” to denote one of the dark syntactic alleys of C++. It’s vexing because programmers usually don’t even know it exists; they assume that their code creates an object initialized with a temporary, whereas the compiler interprets that same code as no

Generate Metatags for ASP.NET Pages Dynamically

You’re probably already aware of the benefits of metatags, which provide metadata about an HTML document. Metatags aren’t rendered in the browser, but search engines use them to categorize web pages. To add metatags dynamically, ASP.NET provides a handy class called HtmlMeta, from the System.Web.UI.HtmlControls namespace. Here’s some sample C#