Govt. Exams
Entrance Exams
ASP.NET Core Web API with [ApiController] attribute is the modern approach for building RESTful APIs that return JSON.
MVC (Model-View-Controller) is an architectural pattern separating data (Model), presentation (View), and business logic (Controller).
AddScoped, AddSingleton, and AddTransient are methods to register services with different lifetimes in ASP.NET Core DI.
Entity Framework is Microsoft's ORM that allows developers to work with databases using .NET objects instead of raw SQL.
Async/Await enables non-blocking I/O operations, allowing ASP.NET Core to handle more concurrent requests efficiently.
appsettings.json stores application configuration like connection strings, logging levels, and custom settings.
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.
ViewBag (dynamic) and ViewData (dictionary) are common ways to pass data from Controller to View in ASP.NET MVC.
[ValidateAntiForgeryToken] verifies that form submissions come from your application, preventing CSRF attacks.