Solved

MVC 4 and Entity Framework

Posted on 2013-05-12
1
509 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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