Solved

Drop Down with bootstrap can't format it... New help.

Posted on 2014-10-23
3
154 Views
Last Modified: 2014-10-29
I have the following code and I'm not sure how to apply the bootstrap on the drop down.

Full code:
<div class="form-inline">
            Find by Last Name or First Name: @Html.TextBox("SearchString", ViewBag.CurrentFilter as String, new { style = "width:200px", @class = "form-control" })

            Location:

            @Html.DropDownList("LocationList", "All")

            <input type="submit" value="Search" class="btn btn-default" />
        </div>

Open in new window


Drop Down. Not sure what I have to modify here.

   @Html.DropDownList("LocationList", "All")

Open in new window

0
Comment
Question by:yguyon28
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40400602
Apply Bootstrap to do what?

@Html.DropDownList("LocationList", "All", new { @class="some-class-name" })

Open in new window

0
 

Author Comment

by:yguyon28
ID: 40401912
Garry I followed your advice but I get this error.
@Html.DropDownList("LocationList", "All", new { @class="some-class-name" })

I get this error
0
 

Author Comment

by:yguyon28
ID: 40401977
CS1928: 'System.Web.Mvc.HtmlHelper<PagedList.IPagedList<TweddlePhoneListApplication.Models.MasterList>>' does not contain a definition for 'DropDownList' and the best extension method overload 'System.Web.Mvc.Html.SelectExtensions.DropDownList(System.Web.Mvc.HtmlHelper, string, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>, object)' has some invalid arguments
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Injector with Web Service 4 41
Question about JQuery and asp.net 3 26
tableview is not updating 1 9
Linq asp.net mvc 13 9
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question