Browse by Tags

Related Posts

  • Why can't I get this #(*&^ DropDownList to work in my MVC View?

    I'm following through the Nerd Dinner tutorial (with my own unique class...not Dinners), and I've gotten to around page 104 and I've run into a problem that I haven't been able to solve after 2 nights of troubleshooting. My problem is this; when I had the MVC scaffolding build my own...
    Posted to ASP.NET MVC (Forum) by Whozurmommy on 04-16-2009, 12:00 AM
    Filed under: MVC, DropDownList
  • Html.DropDownList no longer works after upgrade to ASP.NET MVC RC1

    I had the following piece of code in a web app running on ASP.NET MVC Beta: <%= Html.DropDownList( "Instances" , new { style= "width:270px;" , onchange = "UpdateReport(this)" }) %> where "Instances" is a SelectList stored in ViewData, like so: ViewData[ "Instances"...
    Posted to ASP.NET MVC (Forum) by flayto on 01-30-2009, 12:00 AM
    Filed under: MVC, RC1, DropDownList
  • Html.DropDownList - so simple - so complicated!

    I just need a list of 3 static items NOT from a database with the selected value coming from ViewData using Html.DropDownList options are: <option value="1">Standard</option> <option value="2">2 Day</option> <option value="3">Overnight</option>...
    Posted to ASP.NET MVC (Forum) by alivemedia on 09-03-2008, 12:00 AM
    Filed under: MVC, DropDownList
  • Re: Preview 3 - Html.ListBox and Html.DropDownList - Please Add Prompt Support Back

    Hey Shawn, I agree, I really liked that feature. If you are intereted, I have implemented the workaround below: // <%= Html.DropDownList("promptList", new PromptSelectList(items, "ValueField", "TextField", selectedValue) { Prompt = "Please select" }) %> public...
    Posted to ASP.NET MVC (Forum) by richard.szalay on 06-05-2008, 12:00 AM
    Filed under: MVC, prompt, DropDownList
  • Dropdown Postback with Value updates?

    Hi, This is what I am trying to do. In a client form where there are many fields, one of the options is to set their location. And if they select to set their location in the dropdown, then I want to show the row where Country and City dropdowns are. When they select the country, cities under the country...
    Posted to ASP.NET MVC (Forum) by Plague2006 on 11-14-2009, 12:00 AM
    Filed under: MVC, DropDownList, postback
  • Displaying the SelectedItem as a Label / TextBox

    In the ASCX I love the simplicity of the Html.DropDownList("", ViewData["Users"] as IEnumerable<SelectListItem>) and thhe use of the UIHint to select this. But there are times I need to show this for display purposes such as in Grids or on a Read Only Display page. In these...
    Posted to ASP.NET MVC (Forum) by quentins on 12-20-2009, 12:00 AM
    Filed under: MVC, DropDownList, textbox, label
  • Drop Down List NOT from datasource

    How do I create a New SelectList from a list of values and have a selected value from my database chosen. For instance a list of states, I don't want that in the database, but i want my users to chose from the list?
    Posted to ASP.NET MVC (Forum) by alivemedia on 06-19-2008, 12:00 AM
    Filed under: MVC, DropDownList
Page 1 of 1 (7 items)