Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server Side and Client Side MVC [closed]

I have started learning ASP.Net MVC, I have few questions with regards to MVC framework [Client Side or Server Side]. You might find these questions stupid but I am really confused and would like to clear my doubts.

Here it is....

  1. ASP.Net MVC, is it server side or client side framework?

  2. Let's say my controller methods getting data from the SQL Server, I convert it into JSON and updating the MVC view, in this case

A. Is it called as Client side data binding or Server side binding?

B. While retrieving the data from database using controller method, do i get entire HTML along with data in the response or just the data that I have requested for?

  1. In ASP.Net, lets say I am inserting data in database on button click event and If I am not wrong, in this case it will submit the entire page to the server, how button click event works in ASP.Net MVC?

  2. I have also read that we can use Angular.JS or knockout.JS with ASP.Net MVC, what purpose Angular.JS or knockout.JS would solve if we use it with ASP.Net MVC?

Regards

like image 488
Dev Avatar asked Aug 04 '15 11:08

Dev


People also ask

Is MVC client-side or server-side?

ASP.Net MVC is a server side framework. (An alternative is ASP.Net WebForms: your events are posts to the same page, abstracted to seem like desktop application events.) If you want, you can output data as JSON or XML and use this with a client side JavaScript framework to update your views.

What is client-side and server-side validation in MVC?

Validations can be performed on the server side or on the client side ( web browser). The user input validation take place on the Server Side during a post back session is called Server Side Validation and the user input validation take place on the Client Side (web browser) is called Client Side Validation.

Does MVC use server-side rendering?

ASP.NET MVC (Server-side) With MVC, all the grunt work is done on the server and the browser is given straightforward HTML to render. The user attempts to navigate to a URL in the browser.

Is MVC still relevant?

ASP.NET MVC is no longer in active development. The last version update was in November 2018. Despite this, a lot of projects are using ASP.NET MVC for web solution development. As to JetBrains' research, 42% of software developers were using the framework in 2020.


1 Answers

ASP.Net MVC, is it server side or client side framework?

   > MVC - is Model View Controller - its All-in-One

Let's say my controller methods getting data from the SQL Server, I convert it into JSON and updating the MVC view, in this case

Is it called as Client side data binding or Server side binding?

> Server side is ALL what you do with C# (In class library/controllers etc)

While retrieving the data from database using controller method, do i get entire HTML along with data in the response or just the data that I have requested for?

>If you will use knockout / angular - then you need just get data from server, and data-bind will happen automatically 

In ASP.Net, lets say I am inserting data in database on button click event and If I am not wrong, in this case it will submit the entire page to the server, how button click event works in ASP.Net MVC?

>Or with submit form (to action url) - or with client framework (knockout/angular) - you just send json

I have also read that we can use Angular.JS or knockout.JS with ASP.Net MVC, what purpose Angular.JS or knockout.JS would solve if we use it with ASP.Net MVC?

>Angular more rich framework. In knockout we have only data-bind with html. It depends on what you need for your project.
like image 69
David Abaev Avatar answered Nov 09 '22 12:11

David Abaev