Web Server not serving certain file types

Internet Information Services (IIS, formerly Internet Information Server) will not return file types that are not added to the <staticContent> element or that have mappings in the <handlers> element by default. This behavior prevents unauthorized access to files that do not have mappings in the IIS configuration settings. The message returned is: “The resource you are looking […]

Conditional Compilation Symbol on cshtml and aspx

According to msdn, you can define symbols/constants for the c# compiler and use them in your code as compile conditions using the #if directive. Those symbols can be used to specify conditions for compilation. However, CSHTML (MVC Razor), ASPX (WebForms) and other ASP.NET pages do not recognize project level compilation symbols. These directives are compile […]

Solve Hierarchical One-to-Many Relationship in Dynamic Data Application

How to correctly display the value of a parent-child relationship and also be able to select items on the DropDownList  in ASP.NET Dynamic Data web application? This method will work with either a recursive or hierarchical relationship between a table and itself, or a relationship between two different tables or entities. It also works with either Entity Framework or Linq To […]