Which would be the right framework to be used ASP.NET MVC or ASP.NET Web API?

If one intends to build a server component that can be easily utilized by an array of clients then ASP.NET Web API is the way to go. If, however, the project is purely going to be used as a web application, then ASP.NET MVC is a more appropriate choice. The choice between ASP.NET MVC and … Read more

What is an ASP.NET Web API framework?

ASP.NET Web API is used purely for building backend web APIs which can be used by an array of clients, from the web to desktop to mobile. It forms the server component in the RESTful (Representational State Transfer) architecture. An ASP.NET Web API framework is a framework provided by Microsoft for building HTTP services that … Read more

What is ASP.NET MVC framework?

ASP.NET MVC is a web application framework for the .NET Platform used for building full stack web applications using the Model-View-Controller pattern. The correct answer to the question “What is ASP.NET MVC framework?” would be: ASP.NET MVC (Model-View-Controller) is a web application framework developed by Microsoft that implements the MVC design pattern. MVC separates an … Read more

What is ASP.NET?

ASP.NET is an open-source server-side application framework designed for web developers to produce dynamic web pages with .NET framework. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. A suitable response to the question “What is ASP.NET?” in an interview context would be: “ASP.NET is a … Read more

What is the difference between ExecuteScalar and ExecuteNonQuery?

ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements. In the context of ASP.NET and database interactions, ExecuteScalar and ExecuteNonQuery are methods provided by ADO.NET for executing … Read more