Posts

Showing posts from March, 2021

ASP.NET MVC Interview Questions Part-2

Image
  1. How is the flow of MVC? => 1) User URL request from browser first comes to controller.      2) Controller processes request and talk to the model.      3) Model prepares data and send it back to controller.      4) Controller talks to view and then create the response by binding model and view.      5) Then controller renders(display) the data to the browser. 2. What are razor views? The razor view is a engine which allows us to write server-side code on view and helps us to write both HTML and C# code together.  3. How is the URL structure of MVC core? The URL structure of MVC core is localhost:4200/{controller}/{action name}. The "localhost:4200" is considered as a controller name. 4. If the view name is different than action name how to invoke it? If the view name is different than action name then we have to write view in double quotes(""). 5. How do we define navigation using anchor tag? The navigations c...

ASP.NET MVC Interview Questions Part-1

Image
  1. What is ASP .NET MVC? ASP .NET MVC is a web application framework to develop websites which can run on MAC, Linux or on any platform.  It is developed by microsoft that implements or provides a model-view-controller architecture.  The MVC is used for user interface(view), data(model) and application logic(controller) which helps to achieve separation of concerns. //The ASP .NET creates a project with some default folders.                                                   2. Why do we need Appsettings.json? The appsetting.json file is an application configuration file used to store configuration settings such as connection string, version number. 3. What is JSON? JSON stands for JavaScript Object Notation.  The JSON is standard text-based format(like name and value, version and number) and used for data transformation in web application i.e...