Programming

How To Create Razor Pages In ASP.NET Core 6.0

How To Create Razor Pages In ASP.NET Core 6.0

Intro: In this article, we are going to discuss how to Create Razor Pages in ASP.NET Core 6.0 using visual studio 2022. What are Razor Pages in ASP.NET Core? Razor Pages is a feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive and it was introduced in ASP.NET Core 2.0. Razor pages are used to create cross-platform, data-driven, server-side web pages. In MVC we have, controller, view, and model folders but in razor pages, we only have a pages folder. Razor pages are mostly used to create small applications. If we have to change something in…
Read More
How To Create ASP.NET Core MVC 6.0 Application

How To Create ASP.NET Core MVC 6.0 Application

Intro: In this article, we are going to learn How to Create ASP.NET Core MVC 6.0 Application using Visual Studio 2022. If you have not installed Visual Studio 2022 yet. Go first and install this and do not forget to install .NET Core SDK 6.0. What is ASP.NET Core MVC? Let's have a short intro we will not dive deep into this. ASP.NET Core MVC is a C# based popular framework to create web applications using MVC Framework. MVC is a framework that has 3 sections Model, View, and controller. The model section has the classes of database entities, the…
Read More
Pointers in C#

Pointers in C#

Introduction: C# provides very limited support for pointers. C# pointers are nothing but variables containing memory location of another type. C# pointers can only contain the memory location of value types and arrays. Pointers in C# are not tracked by the default garbage collection mechanism. For the same reason, pointers can not point to a reference type or structure type that contains a reference type. C# Pointers can point to only basic data types like enum types, bool types, other pointers types, and structs that contain unmanaged data types, not reference types. Declairation of C# Pointers: The template of declaring…
Read More
What is ASP.NET Page Life Cycle

What is ASP.NET Page Life Cycle

ASP.NET Page Life Cycle is when a page is requested there are series of processes to load it on user side. These series of processes needs to be completed to load a page succesfully on user end. When a page is requested by user the page is loaded into the server memory and sent it to the user-end(browser). So these series processed like initialization, instantiation, restoring and maintaining state etc are performed on server. Developers needs to understand this ASP.NET page life cycle to override it on custom requirement. Let's look these processes/phases into details. Page Request: This phase occurs…
Read More
How to Improve ASP.NET Website Performance

How to Improve ASP.NET Website Performance

In online business ASP.NET website performance or web application performance matters a lot. If your ASP.NET website is not optimized so the audience will press the back button and open an alternative. If you have an ASP.NET Application and it's not optimized. The audience will sooner or later start complaining or find an alternative. Whenever we talk about user-friendly applications the optimization and performance are some of the key factors that we count first. When we develop an ASP.NET Application we should take care of what elements we are using and how can we optimize each component better. If we…
Read More
What is Dependency Injection in C#

What is Dependency Injection in C#

In this article, we are going to briefly discuss the Dependency Injection in C#. Dependency Injection (DI) is mostly used in complex and real-time applications. But nowadays it's being normal to use Dependency Injection (DI) in every common application. As a developer, it is compulsory to know why we need Dependency Injection (DI) and what kind of results we can achieve by using it. Before we jump into “What is Dependency Injection (DI) in C#” we must know that why we need this in our design pattern. Why do we need Dependency Injection (DI) in C#? Dependency Injection (DI) is…
Read More
ASP.NET vs ASP.NET Core

ASP.NET vs ASP.NET Core

Hello everybody, and welcome to mycodebit today, we are talking about the differences between ASP.NET vs ASP.NET Core, so both platforms ASP.NET and ASP.NET Core, are derived from .NET. Both Microsoft-built frameworks are simple in usage. Let's clear out some common misunderstandings. "ASP" is a server-side scripting language and engine for dynamic web pages. ASPs are typically used for the back end of a web application. ASP.NET is a server-side web application framework designed for web development to produce dynamic web pages. Keep reading to get the answers to the most common questions about ASP.NET and ASP.NET Core. The same…
Read More
Top 15 ASP.Net Core Interview Questions and Answers

Top 15 ASP.Net Core Interview Questions and Answers

Today we will discuss, the most asked and hot ASP.NET Core interview questions and answers, that you should know before any ASP.NET Core interview. Let's gets started, 1. What is ASP.NET Core? ASP. NET Core is a new version Of ASP.NET and it is open source. It is not an upgraded version Of ASP.NET it's completely rewritten. It is cross-platform, supporting Windows, macOS, and Linux, and can be used in devices, clouds, and scenarios. It can work with both .NET Core and .net framework via the .NET standard framework. It is best suitable for developing cloud-based such as web applications,…
Read More
C# vs JAVA

C# vs JAVA

C# vs Java is always compared because both are object-oriented programming languages. Now let's have a look at C# and JAVA. What is C#? C# is a general-purpose, multi-paradigm programming language. C# encapsulates static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. Anders Hejlsberg designed C# at Microsoft in 2000. It was approved later in 2002 and 2003. C# was introduced with .NET Framework and Visual Studio. The name "C sharp" was inspired by the musical notation whereby a sharp symbol indicates a semitone higher in pitch. But before we even start talking about languages…
Read More