Archives for Server Side - Page 6
Different ways to rendering a Partial View in ASP.NET MVC
A partial view is like as user control in Web forms that is used for code re-usability. Partial views helps us to reduce code duplication. Below are four methods for rendering a…
Part 3: Understanding with different ways of Injecting Dependencies
I will cover most of the topics about Dependency Injection in this Series. This series contains four parts as follows Part 1: Understanding why we need to use Dependency Injection?…
Part 2: Understanding how to implement Dependency Injection using Unity
I will cover most of the topics about Dependency Injection in this Series. This series contains four parts as follows Part 1: Understanding why we need to use Dependency Injection?…
Part 4: Understanding how Service Locator different from Dependency Injection
I will cover most of the topics about Dependency Injection in this Series. This series contains four parts as follows Part 1: Understanding why we need to use Dependency Injection?…
Part 1: Understanding why we need to use Dependency Injection?
I will cover most of the topics about Dependency Injection in this Series. This series contains four parts as follows Part 1: Understanding why we need to use Dependency Injection?…
Deferred vs Immediate Query Execution In LINQ
Deffered Query Execution: In .NET when you write a LINQ query it actually performs the querying only when the LINQ result is accessed. This phenomenon of LINQ is called deferred…
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…
Working with new enhanced Feature of ‘ref’ Keyword in C# 7.0
Here In this article, I will try to explore the new enhanced feature of 'ref' keyword. As a programmer, we are familiar with 'ref' keyword, which allows us to pass…
Using Caller Information attributes in C#
Caller Information attributes are newly introduced in Framework There are three attributes which are more helpful in tracing, debugging and diagnosis the application. These attributes will provide some information about…
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…