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 6716379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:43:35+00:00 2026-05-26T08:43:35+00:00

What I am trying to do using asp.net MVC3: -User selects a Category from

  • 0

What I am trying to do using asp.net MVC3:

-User selects a Category from a list of Categories.

-The SubCategories page then displays a list of images found to represent that Parent Category as well as the list of SubCategories.

I run into the need for multiple models because the “Category Images” are associated with Category and not the “SubCategory model“. Yes I realize this seems like it has been asked many times before but the syntax is still foreign to a noob like me. What goes where?

I got the Category -> Html.Actionlink to the controller to return a list of SubCategories part… but even if I did some left join to get category and list of images as well, how would I get those into the same view as the list of subcategories?

Update
Found this posting:

http://francorobles.wordpress.com/2011/05/03/returning-multiple-models-in-1-view-in-asp-net-mvc3/

Question: Is that a valid approach? My intellisense suggests no.

  • 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. Editorial Team
    Editorial Team
    2026-05-26T08:43:36+00:00Added an answer on May 26, 2026 at 8:43 am

    In cases like this you need “view models”, i.e. view-specific models that have all the data your view needs.

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

Sidebar

Related Questions

I'm having trouble trying to print a document from a ASP.NET MVC3 application using
I am trying using several asp.net checkboxes on a page, disabling them accordingly. <asp:CheckBox
I am converting a web application from asp.net to MVC3 and am trying to
Using ASP.Net MVC3 with C#. Currently I am trying to pass a single database
I'm using ASP.NET MVC3 and trying to validate an URL field using DataAnnotationsExtensions. It's
I am trying to output the following URL using the ASP.Net MVC3 framework and
I am trying to learn MVC using ASP.NET MVC3. Most of the tutorials I
I'm using ASP.NET MVC 2.0 and I am trying to take advantage of the
i'm using ASP.NET + a MySql Db. I'm trying to configure a ListView so
We are trying to build a cross-domain single-sign on solution using ASP.NET MVC. Any

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.