Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 93407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:20:22+00:00 2026-05-10T23:20:22+00:00

I am currently building an application using ASP.NET MVC. The data entry pages are

  • 0

I am currently building an application using ASP.NET MVC. The data entry pages are fairly easy to code, I just make the Model for the page of the type of my business object:

namespace MyNameSpace.Web.Views.ProjectEdit {     public partial class MyView : ViewPage<Project>     {     } } 

Where I am struggling is figuring out the best way to implement a dashboard like interface, with stand-alone parts, using ASP.NET MVC, where the Model for each part would be different? I’m assuming that each part would be an MVC user control.

Also, how could I make it so each part is testable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:20:23+00:00Added an answer on May 10, 2026 at 11:20 pm

    I think that user controls is probably the way to go. I’m not sure what the concern is about testability. You should be able to test that your controller is providing the right view data — since you’ll have several models each of these will probably be stored in a separate view data item, rather than aggregating them in a single model. Aggregating in a single model is also possible, although probably more brittle. Each control would just need to check for a particular view data item, rather than being specific to a particular model. You could approximate the model variable on each view page by doing:

    <% MyUserControlModel model = ViewData['MyUserControlModel']          as MyUserControlModel; %>  <div id='myUserControl_dashboard' class='dashboard'>    Name: <%= model.Name %><br />    Count: <%$ model.Count %> </div> 

    If you need to test your view, then you’re probably already using Selenium or some other web testing framework. I don’t think that these would care how the page was constructed and you should be able to construct your tests pretty much like you always do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently building an ASP.Net-MVC Application using log4net for logging, but the logger
I am building a wizard using asp.net mvc. currently when the user hits next
I'm tasked to create a web application. I'm currently using c# & asp.net (mvc
I'm currently building a Spring MVC application. I was looking to use JSP pages
I'm currently building the Admin back-end for a website in ASP.NET MVC. In an
I'm currently building an ASP.NET MVC project, with NHibernate as its persistance layer. For
I'm building a web application using the ASP.net Membership Provider to manage, Authentication/Authorisation. I've
I am currently building a web site and I just implemented SqlCacheDependency using LinqToSQL
SQL Server 2008 Ent ASP.NET MVC 2.0 Linq-to-SQL I am building a gaming site,
I am using Spring MVC for an application I am building. Everything is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.