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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:15:55+00:00 2026-06-12T04:15:55+00:00

i have added the model in my view: @model Tuple<List<EshopTheme.Areas.Administrators.Models.ThemeGroupsModel>, EshopTheme.Areas.Administrators.Models.AdminModel, EshopTheme.Areas.Administrators.Models.ThemesModel> in my

  • 0

i have added the model in my view:

    @model Tuple<List<EshopTheme.Areas.Administrators.Models.ThemeGroupsModel>,
                      EshopTheme.Areas.Administrators.Models.AdminModel,
                      EshopTheme.Areas.Administrators.Models.ThemesModel> 

in my Controller i have added this action:

   public ActionResult AddTheme()
    {
        AdminSrv adminService = new AdminSrv();
        AdminModel adminModel = new AdminModel();
        ThemesModel themeModel = new ThemesModel();
        Tuple<List<ThemeGroupsModel>, AdminModel, ThemesModel> tuple =
            new Tuple<List<ThemeGroupsModel>, AdminModel, ThemesModel>
                (adminService.getAllThemeGroupByAdmin(), adminModel, themeModel);
        return View(tuple);
    }

i have used this DropDownListFor :

    @Html.DropDownListFor(x => x.Item1, new SelectList(Model.Item1))

but, DropDownListFor , shows the list of:

    EshopTheme.Areas.Administrators.Models.ThemeGroupsModel
    EshopTheme.Areas.Administrators.Models.ThemeGroupsModel
    EshopTheme.Areas.Administrators.Models.ThemeGroupsModel

why?????????????

this is my getAllThemeGroupByAdmin() code:

  public List<ThemeGroupsModel> getAllThemeGroupByAdmin()
    {
        List<ThemeGroupsModel> ThemeGr = new List<ThemeGroupsModel>();
        ThemeGroupsModel ThemeGrTemp;
        using (var context = new EShopThemeDBEntities(idbconnection.ConnStr))
        {
            var ThemeGroupList = (from o in context.ThemeGroups
                                  select o).ToList();

            foreach (var item in ThemeGroupList)
            {
                ThemeGrTemp = new ThemeGroupsModel();
                ThemeGrTemp.ThemeGroupName = item.ThemeGroupName;
                ThemeGrTemp.ThemeGroupId = item.ThemeGroupID;
                ThemeGr.Add(ThemeGrTemp);
            }
        }
        return ThemeGr;
    }
  • 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-06-12T04:15:57+00:00Added an answer on June 12, 2026 at 4:15 am

    You should use Text and Value property;

    SelectList selectList = new SelectList(selectListItems, “Value”, “Text”);

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

Sidebar

Related Questions

Hi, I have a View class that contains a list, this list explains the
In my view model, I have added DisplayAttributes to my properties, and would now
I have added the recaptcha helper to a view I have created. My controller
I have a DataGrid bound to a PagedCollectionview property of my View-Model. I've added
I tried to integrate this javascript mvc sample http://www.alexatnet.com/content/model-view-controller-mvc-javascript into an asp.net page, I'm
I have added checkbox selection model to grid panel. It works fine in IE8
I have added a 'cancelled' field to my model, is there a way to
I have several Core Data model version that I have added to my .xcdatamodeld
I have defined a User model and added a featured field to it: class
I have a model that uses a acts_as_nested_set fork, and I've added a method

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.