Govt. Exams
Entrance Exams
ASP.NET Core Web API with [ApiController] attribute is the modern approach for building RESTful APIs that return JSON.
AddScoped, AddSingleton, and AddTransient are methods to register services with different lifetimes in ASP.NET Core DI.
Async/Await enables non-blocking I/O operations, allowing ASP.NET Core to handle more concurrent requests efficiently.
ASP.NET Web Forms lifecycle: Init → Load → Event Handling (ViewState restored) → Render → Unload.
For persistent data across multiple sessions, database storage is the best approach. Session State is temporary and Application State is server-wide.