Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MVC MVC3
n MVC structure among that three layers(Model-View-Controler) which one is used for data editing (like data tier in three tier architecture)?
Posted 5-Dec-12 2:45am
Kavitha_b1.4K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Controller-manage data between model and view
model-for data
view-for presentation
  Permalink  
Comments
Kavitha le at 5-Dec-12 7:55am
   
So controller act as middle layer right?
RahulRana723 at 5-Dec-12 7:58am
   
yes.it get request from view,process it ,get data from model,process data getting from model and send recieved data to View for present it
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).
 
View manages the display of information.
 
Controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Model is the data to needed for the view
View is only for displaying your data nothing more than that.
Controller is responsible for handling request and response.
 
For example when an user send an request to a server for getting some data. First Controller process the request for fetching data from server and that data set to the model and then model return to the view.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Model Objects
 
Model objects encapsulate the data specific to an application and define the logic and computation that manipulate and process that data

A controller object
acts as an intermediary between one or more of an application’s view objects and one or more of its model objects.
 
and view only display informatin in different format.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 PIEBALDconsult 110
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 12 Sep 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100