You should make sure that the file path passing to delete from the server in asp.net c#. This following code is to delete the record from database and also from the folder path of the server.
You can assign any values to the element of enumeration List. In this example, I will show to how to assign values and datatype and get integer value from enum.
I got this error that the web.config was referencing System.Web.WebPages.Razor,
Version=2.0.0.0. Later I changed it to System.Web.WebPages.Razor,
Version=3.0.0.0.