Reference Page: C-Language|C++|C#|VB.Net|Asp.Net

Asp.Net Links : Learn     Interview Questions     Software IDE Asp.Net Jobs : Indeed.com     ZipRecruiter.com     Monster.com

Asp.Net & WebApi Interview Questions - Page 1

Next Page >
Question: What is Asp.Net?
Answer: It is a server-side open-source application framework developed by Microsoft where web developers can produce dynamic web pages with .NET framework. Asp.Net can allow programmers to build modern web sites, web applications and web services.

Question: What is Web API framework in Asp.Net?
Answer: Web APIs are used for building backend APIs which can be used by an any client, whether web, desktop or mobile. WebApi is the server component within a RESTful architecture.

Question: What is MVC framework in Asp.Net?
Answer: ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating MVC-based Web applications. The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller for better maintainability.

Question: Can you explain MVC framework a little more?
Answer: Models provide access and storage for the application data. Typically a model represents a database table. Models implement methods to access or modify the data, most commonly these are create, read, update, and delete (CRUD) operations.

Views transform the application data in memory to user interface elements. They may also just serialize the data or transform the data to other user interface representations.

Controllers are the glue of the pattern. They are the entry point of the pattern and make models and views work together. All operations are first handled by controllers.

Question: What are the advantages of Asp.Net.NET MVC framework?
Answer: Following are the main advantages of MVC framework:
• Manages complexity by separating application into Model, View and Controller layers.
• Does not requrie view state or server-based forms.
• Provides somplete control over HTML, JavaScript, and CSS.
• Supports Test-Driven Development (TDD).
• Works better for large teams of developers and web designers requiring more control over application behavior.

Question: Can one develop an web application supporting both Web Form and MVC?
Answer: Yes that's possible, one would need to include mvc assembly references in the a web forms application to create hybrid application.

Question: How can we use Web API with ASP.NET Web Form?
Answer: Web API can be used with Asp.Net Web Forms following steps:
• Creating a Web API Controller to process a request and send some response.
• Then adding a routing table to the Global.asax Application_Start function.
• And finally, we are ready to call the Web API and retrieve response.



Next Page >