Top "Asp.net-mvc" questions

The ASP.

Writing/outputting HTML strings unescaped

I've got safe/sanitized HTML saved in a DB table. How can I have this HTML content written out in …

asp.net-mvc asp.net-mvc-3 razor
How to secure an ASP.NET Web API

I want to build a RESTful web service using ASP.NET Web API that third-party developers will use to access …

c# asp.net-mvc oauth asp.net-web-api
What is the difference between 'classic' and 'integrated' pipeline mode in IIS7?

I was deploying an ASP.NET MVC application last night, and found out that it is less work to deploy …

asp.net asp.net-mvc iis iis-7 integrated-pipeline-mode
Getting full URL of action in ASP.NET MVC

Is there a built-in way of getting the full URL of an action? I am looking for something like GetFullUrl("…

c# .net asp.net-mvc url-routing
Display DateTime value in dd/mm/yyyy format in Asp.NET MVC

Is it possible to display a DateTime value in dd/mm/yyyy format with the help of HTML Helper methods …

asp.net-mvc asp.net-mvc-4 datetime datetime-format
How to make custom error pages work in ASP.NET MVC 4

I want a custom error page shown for 500, 404 and 403. Here's what I have done: Enabled custom errors in the web.…

asp.net asp.net-mvc asp.net-mvc-4
How to get the Display Name Attribute of an Enum member via MVC razor code?

I've got a property in my model called "Promotion" that its type is a flag enum called "UserPromotion". Members of …

c# asp.net-mvc razor displayattribute
Biggest advantage to using ASP.Net MVC vs web forms

What are some of the advantages of using one over the other?

asp.net asp.net-mvc
The type or namespace name 'DbContext' could not be found

I am VERY new to ASP.NET MVC (3) and am having a hard time resolving a build error in Visual …

asp.net-mvc visual-studio-2010 asp.net-mvc-3 visual-studio entity-framework
Email address validation using ASP.NET MVC data type attributes

I have some problems with the validation of a Email. In my Model: [Required(ErrorMessage = "Field can't be empty")] [DataType(…

c# asp.net-mvc validation email-validation