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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:29:09+00:00 2026-05-28T17:29:09+00:00

In my view there is this DropDownList : @Html.DropDownList(fOrderstatus, TryCast( ViewBag.StatusOptions, SelectList), –pick–, New

  • 0

In my view there is this DropDownList:

@Html.DropDownList("fOrderstatus", TryCast( ViewBag.StatusOptions, SelectList), "--pick--",  New With { .title="Pick an orderstatus"} )

The view shows purchaseorders and the dropdownlist should give the user the possibility to filter, e.g. choosing only ‘active’ orders.

I prefer a solution in plain vanilla ASP.NET MVC.

In old skool ASP classic I would have an onchange=submit in the SELECT and in the called ASP (via the FORM action) a Request.Form([name of the SELECT])…

  • 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-05-28T17:29:11+00:00Added an answer on May 28, 2026 at 5:29 pm

    i really searched endless for my answer, and maybe my last remark did it: found the answer myzelf. First you need to define the FORM:

    @Using Html.BeginForm("index",  "purchaseorders")
    
        @Html.DropDownList("fOrderstatus", TryCast( ViewBag.StatusOptions, SelectList), "--pick--",  New With { .title="Pick an orderstatus", .onchange="submit();"} )
    
    End Using
    

    In the controller you receive the selected option:

     Function Index(ByVal fOrderstatus As String) As ViewResult
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code in a view: <div class=wrap_select> @Html.DropDownList(dateRange, new SelectList(Model.DateRange, Value,Text),
When I have a DropDownList that relevant to Model of view like this: @Html.DropDownListFor(model
Data : var countries = new Dictionary<string,string>(); countries.Add(AF,Afghanistan); countries.Add(US,United States); countries.Add(FR,France); Razor : @Html.DropdownList(Countries,new
When I try to bind in an MVC 3 view (using an @Html.DropDownList helper)
I'm having trouble figuring this one out. In my view I have a dropdownlist
I cannot change the css theme of my Drupal View. This is a screenshots
Question: Does Informix have a construct equivalent to Oracle's materialized view or is there
Is there a way to view the key/value pairs of a NSDictionary variable through
Is there any way to view the activity log for the integrate SourceSafe inside
Is there any way to view the contents of the solution user options file

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.