Solved

MVC 4 and Entity Framework

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

729 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