ttmind

Main Content

Please wait...
Everything has been changing in this world and likewise the frameworks of .Net Platform. The .Net is the technology provided by the Microsoft to simplify the software development. And Its frameworks have been updating time to time. The most recent one is Asp.net core 3.0 preview 1. Both are the Frameworks provided by .Net platform to build the server-side applications. Both Frameworks are based on C# Programming language so we can exchange the code across. However, there is difference in fundame ......Read More
Middleware is software that’s assembled on the application pipeline to handle request and responses over the pipeline.Middleware has access to both request and response. Middleware can process and pass the request to next middleware .Middleware can handle the request and short-circuit the pipeline. It can process outgoing response .Middleware is used to execute according to their own arrangement. Middleware can be of static page or dynamic so middleware mainly is used to call next middlewa ......Read More
View Engine in .NET is responsible for rendering your code into good looking Interface. MVC uses the views to locate and render the views we are requesting from the controller through asp action. Views can contain server controls, html tags and can have programming code. There are many view engine available like ASPX Razor Spark NHaml NDJango Hasic and many more But most of the programmers prefer to user Razor view due to its convenience There are Two View Engines used in Dot NET Fr ......Read More

How to return View as PDF in .Net core ?

Portable Document Format(PDF) as the name refers is a file format which presents documents in a manner independent of software , hardware and OS. PDF format is very important for printing the document and information. We can display the content in our webpage in a pdf format which makes it easier to print rather than displaying it in an usual normal web page. Suppose We have a condition where we need to print the invoice or bill to the user from our system then there is a simple way for doing ......Read More
Logical operation on data especially in the web where we have HTML, CSS, Script in mixed form (mixed data), at the same time we need to find meaning full data with mixed nature of data is a complex operation. In order to have better performance doing so, we will have a regular expression which can help us. What is Regular Expression? A nice definition from Wikipedia is, "A regular expression, regex or regexp (sometimes called a rational expression) is a sequence of characters that define a sea ......Read More
Today here we are going to create Asp.Net Core MVC aka Model View Controller using empty template in asp.net core 2.2.0 At first we need to open visual studio Left click on File Select New =>Project and you will see this type of popup as shown below: Now extend Visual C# at left side below new project Now click on Web and it will again extend and you will see .Net Core and click on .Net Core Select Asp.Net Core Web Application as shown in figure and select name and give name for ......Read More
Environment Settings for Development, Staging and Production As we all know in all projects we have things like JS, CSS and other things that are very in different stages of development, so having proper setting for all these can help a lot and can save lot of time like we need to minify JS and CSS in production or we may load them from different paths. So it's always good to use of appsettings.Development.json file etc. Use of Clean Controller as possible Having a smaller code block in ......Read More
Docker is a most popular containerization tool today. Before we dive in details there are few small things that we need to understand like What is Docker, Container etc. What is Docker? Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. What is Container? A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker ......Read More
Though the .NET Core is already optimized for performance, having some tunning and following best practice can help a lot, in another world every one need to have a reliable, flexible, and faster application with just applying better approach. One clear guideline is always true for any application proper use data flow, caching, best practice for coding, following design pattern will lead to better undoubtedly. But in this post, we are looking some .net core specific tunning and web publishing ......Read More

What is call stack and stack trace in C#

In computer science (CS), a call stack is a stack data structure which stores detail information about the active subroutines of a program. This kind of stack is also known as an execution stack (ES), program stack (PS), control stack, run-time stack, or machine stack, and is often referred as just "the stack". By using a Call Stack window, we can view the function or procedure calls which are currently on the stack. A Call Stack window shows us the order in which methods and functions are gett ......Read More