1

My app has these models:

patient, which has one patient_info, which has one history and has many exams.... I want to create a Report view where I show all this data.. right now Im creating the view and its turning out to be ugly and long.. is there a way I could create separate views for each of this things and then just render them in one Report View?

1
  • Which ASP.NET MVC version are you using? Commented Feb 3, 2010 at 19:41

2 Answers 2

2

You could break up the report into partial views and render them using Htm.RenderPartial

Sign up to request clarification or add additional context in comments.

Comments

1

You could create a controller action for some of the sections and grab that data via AJAX when needed. You could use an expander type control to determine what is shown and grab the data only when a section gets expanded. This would also allow the possibility of displaying the patient info while loading the history using AJAX so the page loads fast.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.