Interview Questions (Part-1)

Posted Posted in .net,, Interview questions

In this article,We will discuss few 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 […]

Design Patterns overview in C# (Part – 1)

Posted 1 CommentPosted in .net, .net Framework,,

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 […]

Difference Between Constant, ReadOnly and Static ReadOnly in C#

Posted Posted in .net,

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 […]

Shallow copy vs Deep copy in C#

Posted Posted in .net,

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 […]

Difference between web form and MVC

Posted 1 CommentPosted in .net,, ASP.Net MVC web form 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 […]

Response.Redirect vs Server.Transfer in

Posted Posted in .net,

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() […]

Global.asax in

Posted 1 CommentPosted in .net,

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 […]