ASP.NET Fundamentals

ASP.NET Fundamentals covers basic topics of ASP.NET Framework such as Session, Cookie, HTTP Handler, HTTP Module, Forms Authentication, Caching, Exception Handling, ASP.NET Request Processing etc.

What is ASP.NET?

ASP.NET is a framework developed by Microsoft to build dynamic web applications. There are two programming models to develop web applications using ASP.NET.

  1. ASP.NET Web Forms
  2. ASP.NET MVC

Both programming models use ASP.NET on the top of that.

ASP.NET is also a part of Microsoft's .NET Framework. We can write ASP.NET Applications code in any .NET Framework supported language i.e. C#, J#, F#, VB etc.

ASP.NET applications can only be hosted under IIS Server which is available on Window Operating Systems only.

Microsoft has now moved it's further development from this traditional .NET Framework (Windows only) to new .NET Core, which is Cross Platform (supporting Windows, MAC OS, and Linux) framework to develop software applications i.e. Desktop, Web, Console, Mobile Applications.


What is Session in ASP.NET?

Sessions are basically server variables that are used to store information on Server.

Session in ASP.NET enables you to store information on server & access that stored information on your sub-sequent web-requests.

HTTP is a stateless protocol, it means every web-request is a new web-request in itself. It does not hold or preserve previous request data. So, Sessions provides us a way to identify the user from on the subsequent web requests.

How to set a value in session in C#:

 Session["Email"] = "ankushjain358@gmail.com";

How to retrieve the stored value from the session:

 string email = Convert.ToString(Session["Email"])

I have covered only basics. You should also study below advanced topics related to Session:

  • Session Identifier
  • Session State Modes


What is Cookie in ASP.NET?

.


What is State Management in ASP.NET? Explain various techniques available for State Management in ASP.NET?

.


Difference between Response.Redirect() and Server.Transfer() ?

.


Explain different Authentication Modes available in ASP.NET?

.


What is an HTTP Handler in ASP.NET?

Explain in detail what is it? When can we make custom one? Why to use it?


What is an HTTP Module in ASP.NET?

.


What is Worker Process or w3wp.exe?

.


What is a Worker Thread?

.


This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. For more information - please visit our private policy.