Tag archives for ASP.Net MVC
Understanding Produces and Consumes Attribute in MVC 6
Produces and Consumes Attributes are newly introduced in MVC 6 ( Core) to control the content negotiation. What is Content Negotiation? The process of picking the correct output format is known as Content Negotiation. Generally, Frameworks will…
How to secure your entire MVC application with “Authorize” attribute ?
Scenario: If you would like to secure your admin pages, you would add “Authorize” attribute for all your admin controllers. However, you might get a situation like; you need to…
Issue: The length of the string exceeds the value set on the maxJsonLength property
Problem Statement Many people had faced with their MVC Applications with the following issue. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the…
Use of AllowAnonymous Attribute in ASP.Net MVC ?
AllowAnonymous Attribute that helps you secure an entire MVC 4 Website or Controller while providing a convenient means of allowing anonymous users access to certain controller action. using ; namespace…
Routing in ASP.NET MVC
Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At run time, Routing engine use the Route table for…
ASP.Net MVC Entity Framework
Entity Framework is an Object/Relational Mapping (ORM) framework that enables developers to work with various relational databases like SQL Server, Oracle, DB2, MYSQL etc. It enables developers to deal with…