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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:13:33+00:00 2026-06-01T06:13:33+00:00

In my controller I use the following: ViewBag.ReferenceId = new SelectList(_reference.Get(00) .AsEnumerable() .OrderBy(o =>

  • 0

In my controller I use the following:

ViewBag.ReferenceId = new SelectList(_reference.Get("00")
   .AsEnumerable()
   .OrderBy(o => o.Order), "RowKey", "Value", "00");

Then in my view I use the following extension to create a dropdown:

@Html.DropDownList("ReferenceID", 
   null, 
   new { 
     id = "ReferenceID", 
     @class = "combobox2", 
     style="width: 150px;"
   }
)

Now I would like to change this to create an unordered list. Something like the following:

<ul id="categories" class="pane list">
   <li><a href="#">Websites</a></li>
   <li><a href="#">Web Design</a></li>
   <li><a href="#">Print</a></li>
</ul>

Is there any MVC extension that can do this for me or is there an easy way I can code something?

  • 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-01T06:13:34+00:00Added an answer on June 1, 2026 at 6:13 am

    There is no equivalent, though you could write it on your own like this:

    tagsList = "<ul>{0}</ul>";
    tagsListItem = "<li>{0}</li>";
    StringBuilder result = new StringBuilder();
    list.ForEach(listItem => result.AppendFormat(tagsListItem, item.ToString()));
    return string.Format(tagsList, result.ToString());
    

    And you could fit the code for your needs (like adding additional tags, attributes etc.)

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

Sidebar

Related Questions

I'm trying to use the following code to push a new view controller on
I use the following the jquery statements to call my php controller function, it
I have a Navigation Controller in my main view. And I use the following
In my new.html.erb page, i use the following line to render a partial and
I use the following in my controller to add tasks to my project model
I use the following code all the time in my view controller: UIView *view
I use the following custom editor in MANY Spring-MVC controllers according to: A controller
Question is should i use properties for my view controllers? Consider the following case:
I'm migrating a Spring MVC controller to use the newer style annotations, and want
I am transitioning code that used implementations of Spring MVC's Controller to use the

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.