Results 1 to 2 of 2

Thread: populate DetailsViewModel in dropdown list

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2006
    Posts
    719

    populate DetailsViewModel in dropdown list

    in Controller I have this code,

    Code:
    HeaderViewModel model = new HeaderViewModelViewModel()
    and in View,

    @model HeaderViewModel


    My question is about DetailsViewModel, I already fill the items of details. but my I don't know how populate the details item in a dropdown list?

    kindly teach me how can I do it?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,274

    Re: populate DetailsViewModel in dropdown list

    I don't really know what it is that you're asking for. You're talking about specific types that mean nothing to us; they're types you defined. You seem top be asking how to pass two models to one view, which is not possible. Please try to provide a FULL and CLEAR description of the problem. Are you simply asking how to populate a drop-down list? I'm really just guessing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width