.net

ASP.net Interview Questions (Part-1)

Posted on

In this article,We will discuss few ASP.net interview questions with answers for beginners and experienced professionals. 1.What is the Postback in ASP.NET? A postback is a request sent from a client to server from the same page, user is already working with. Add a new ASP.NET web form page to a project e.g. WebForm1.aspx. View […]

.net

Design Patterns overview in C# (Part – 1)

Posted on

In this article, we will discuss the overview of Design patterns in C#. Let’s understand what is Pattern? “Pattern is a recurring solution to a problem in a context“. “Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in […]

.net

Difference Between Constant, ReadOnly and Static ReadOnly in C#

Posted on

In this article, we will discuss the very common keywords in C# (constant, ReadOnly and Static ReadOnly) and discuss the difference between these keywords. Constants: A constant is a variable modifier that represents a constant value, a value that can be computed at compile-time.By default a const is static and we cannot change the value […]

.net

Shallow copy vs Deep copy in C#

Posted on

When we copy one instance to another using C# what happen is that both instances share the same memory address. But this is not the behavior we want most of the time. Shallow Copy: For instances of value types, the ‘=’ assignment operator copies the state of the source object to the destination object. The copy […]

.net

Difference between ASP.net web form and ASP.net MVC

Posted on

ASP.net web form ASP.net MVC Page controller pattern that means an implicit controller (code behind) would process the request Front controller pattern that means an explicit controller would be there to process the request web form has user controls for code reusability Partial views has code reusability view and controllers are not separated view and […]

.net

Response.Redirect vs Server.Transfer in ASP.net

Posted on

Both Server.Transfer and Response.Redirect are ASP.NET objects and are used for navigation between web-pages. However, there are noticeable differences between these two techniques: Response.Redirect() Response.Redirect() redirects the user to another web-page which may or may not be on the same server. It can redirect the user to an external website on a different server. Response.Redirect() […]

.net

Global.asax in ASP.net

Posted on

Global.asax: The Global.asax is also known as the ASP.NET application file and is used to serve application-level and session-level events. It allows us to write code that response to global application events raised by ASP.NET or by HttpModules. These events fire at various points during the lifetime of a web application, including when the application domain is […]