Solved

MVC 4 and Entity Framework

Posted on 2013-05-12
1
522 Views
Last Modified: 2013-05-16
Have another question about MVC. I have used the Model and Entity Framework to build and modify a SQL Server with CRUD. Couple questions about this:

You have a model with LabelA and TextboxA, LabelB and TextboxB, LabelC and TextboxC with each Label and Textbox combo displayed on its own line. In the View I wanted the Label and Textbox combo to display like this:
LabelB and TextboxB
LabelA and TextboxA
LabelC and TextboxC

or this:

LabelC and TextboxC
LabelB and TextboxB
LabelA and TextboxA

Since the Controller, View and Model work together to display DHTML, is this possible? I know the easy answer is to rearrange the Label and Textbox combos in the Model but I want to know if it can be done in the View and if so, how?
0
Comment
Question by:AmbassadorSpock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 500 total points
ID: 39161573
Your model doesn't contain textboxes, it contains data. I'm not sure why you have labels in your model (rather than using data annotations), but regardless, the View is the only thing that displays HTML (not DHTML). Simply write the view to display the information in whatever order/format you like.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question