NET Interview Prep
NET Interview Prep
Framework: It is like a pre-built structure or a set of tools that helps developers to build
applications more easily. It provides a foundation with ready-to-use components, so
developers don’t have to start everything from scratch.
appsettings.json file
https://dotnettutorials.net/lesson/asp-net-core-appsettings-json-file/
7. Protected member?
Protected member is accessed either in its own class or in its derived class.
9. Can we access static files, present outside the wwwroot folder, in the Razor
view?
Yes, we can access by writing:
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new
PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(),
"MyStaticFiles")),
RequestPath = "/static"
});
10. Why to use partial view?
We use partial views to encapsulate reusable UI components or sections of a
page, improving code organization, reducing redundancy, and making
maintenance easier by allowing you to reuse the same markup in multiple
views.