Tag: MVC

  • Brief Journey to Asp.Net MVC Framework

    Introduction: ASP.NET MVC is a  framework for building web applications that uses the model-view-controllerpattern. Like ASP.NET Web Forms, ASP.NET MVC is also built on top of the ASP.NET Framework. This means we can use same APIs like security, state management, membership, caching,ajax etc in MVC Applications. Every ASP.NET MVC application has three parts: a model,…

  • ASP .Net MVC Error Logging Using Elmah

    ASP .Net MVC Error Logging Using Google Elmah Introduction: ELMAH is one of the popular Library to logging unhandled errors provided by Google .It’s an application wide error logging facility which can be dynamically plugged. You don’t need to recompile the code. It’s pluggable. Below I will show you how to log your errors using…

  • Token Based Authentication for Web API’s

    Securing ASP.NET Web API using Custom Token Based Authentication Providing a security to the Web API’s is important so that we can restrict the users to access to it. We can provide the security in two different ways: Basic authentication. Token based authentication. In this blog, we will discuss how we can implement token based…

  • ASP.NET: Audit Trail Implementation using Entity Framework

    When you are working with certain projects which involves the Customer records, you might need to track of each and every addition/change made to system along with who create, modify and delete the records.  Here I am going to show you how to implement the Audit Trail using Entity Framework in ASP.NET. Entity Framework keeps…

  • Asynchronous actions in MVC 5

    What does it mean? Asynchronous actions allow developers to handle more concurrent requests and can be implemented using async / await keywords. Asynchronous actions are useful in scenarios where we are performing some network operation such as calling a remote service, webapi etc. What are the Benefits? 1) It can make application to handle more…

  • ELMAH Integration in ASP.NET MVC Application

    ELMAH (Error Logging Modules And Handlers) What is ELMAH? ELMAH (Error Logging Modules and Handlers) is a series of HTTP modules and an HTTP handler that may be added to your ASP.NET web applications for the purpose of tracking unhandled exceptions. ELMAH provides access to view these errors by way of a web console, email notifications.…

  • Unit testing in .NET

    Unit Testing – Explained A process which involves writing code to verify a system at a lower and more granular level is known as Unit Testing. Unit Testing gives us the ability to verify that our functions/methods work as expected. It is used by programmers for programmers. Unit tests are written to ensure that code…

  • Filters and Attributes in ASP.NET MVC

    Filters inject extra logic into MVC Framework request processing. They provide a simple and elegant way to implement cross-cutting concerns. This term refers to functionality that is used all over an application and doesn’t fit neatly into one place, where it would break the separation of concerns pattern. For example, if we need some action…

  • Controllers and Actions in MVC

    Every request that comes to our application is handled by a controller. The controller is free to handle the request any way it wants, as long as it doesn’t belong into the areas of responsibility of the model and view. This means that we do not put business or data storage logic into a controller,…

  • THE RAZOR VIEW ENGINE IN MVC

    View Engine is responsible for rendering the view into html form to the browser. ASP.NET MVC includes two different view engines, the newer Razor View Engine and the older Web Forms View Engine. What is Razor? The Razor view was introduced with ASP.NET MVC 3 and is the default view engine moving forward. Razor provides…