.net

All you need to know about Domain Driven Design

As a developer, we love to write code which leads us to jump on code and start building the software. But you can’t build software if you truly understand the client’s needs. Domain Driven Design puts more emphasis to work with your client as a full partner. The ultimate goal is to solve problems complex …

All you need to know about Domain Driven Design Read More »

Top libraries that make your life easier as a developer

If you are a developer this article is going to make your life easier. We are going to talk about third-party libraries that can help you as well as helps to make your code clean. 1. AutoMapper AutoMapper helps to copy data from one object to another object type. AutoMapper does some interesting conventions to …

Top libraries that make your life easier as a developer Read More »

C# and .Net Assessment Multichoice Test

The C# and .Net Assessment Test is a Multichoice quiz, which covers OOPS, C# and .Net framework questions. The test questions are random. Please note: The results are private unless you share them. Do you want to brush up the concept? Please visit this before taking up the test. Good luck!

ASP .NET Interview Questions and Answers

In this article, I will try to cover ASP .NET interview questions which you must know before going for an interview, this is useful for both freshers and experienced candidates 1. What is ASP? Active Server Pages (ASP), also known as Classic ASP, is Microsoft’s server-side technology, which helps in creating dynamic and user-friendly Web …

ASP .NET Interview Questions and Answers Read More »

Data Entry Form using Simple HTML Helper In MVC

HTML Helper in MVC In this article we will learn how to code for entering data form using simple HTML Helpers. Create New ASP.NET MVC4 Web Application. Select Razor As View Engine. Right click on Model ->Add new Class ->Customer Class. Right click on controller and -> Add new item-> CustomerController

Render Pdf bytes array within browser in MVC

Render Pdf within browser There are different ways to render Pdf in a browser. In this I’m explaining to render Pdf by fileContent/byte array. In a below example I’m using Index Action which returns the FileContentResult. public ActionResult Index() { Response.Clear(); Response.AddHeader(“Content-Disposition”,“inline; filename=sample.pdf”); Response.AddHeader(“Content-Type”,“application/pdf”); Response.ClearHeaders(); Response.AddHeader(“Content-Length”, byteArray.Length.ToString()); FileContentResult result = new FileContentResult(byteArray, “application/pdf”); return result; } …

Render Pdf bytes array within browser in MVC Read More »

MVC Simple Model In ASP.NET

In our previous article we have learnt basics of MVC , now in this article we will learn how to make simple model In MVC. Create New ASP.NET MVC 4 Web Application . Select Internet Website as template. Select ASP.NET as  View Engine Right Click on the model -> Add New Item ->Class -> Movies.cs

Avoid multiple call to AuthorizeCore in MVC

AuthorizeCore in MVC In MVC AuthorizeAttribute Class is another cool feature that makes it easy to add authentication at the Controller level. In AuthorizeAttribute class we have AuthorizeCore function, it specifies that access to a controller or action method is restricted to users who meet the authorization requirement. We can override AuthorizeCore  function as per our authorization logic. …

Avoid multiple call to AuthorizeCore in MVC Read More »

MVC Basics for Beginners

MVC Basics In this article you will learn some basic concepts of  MVC Architecture. So what is MVC ? An Architectural design principle that separates the components of a Web Application. This separation gives you more control over the individual parts of the application , which lets you more easily develop , modify and test …

MVC Basics for Beginners Read More »

Microsoft CacheManager Contains vs Getdata

Microsoft CacheManager Contains vs Getdata In Microsoft.Practices.EnterpriseLibrary.Caching, GetData is used to get data from the cache and Contains checks whether the key exists in the cache. Ideally if Contains(key) returns true than GetData(key) should returns data from the cache associated with the key.  But somehow it works in the different condition. In the below code block Contains(key) returns true but the block returns null.     …

Microsoft CacheManager Contains vs Getdata Read More »

%d bloggers like this: