Access key value from Web.config in Razor View-MVC3 ASP.NET
The preferred method is actually:
@System.Web.Configuration.WebConfigurationManager.AppSettings["myKey"]
It also doesn't need a reference to the ConfigurationManager assembly, it's already in System.Web.
@System.Configuration.ConfigurationManager.AppSettings["myKey"]