I have the following code that creates a drop down list.
When the user selects an item, I want to call a specific action in the controller and pass the new value as a parameter.
I have the following code, but this does not work, and I get "Invalid C regular expression" when I test Firebug.
@Html.DropDownList( "ctrlName", items, null, new { onchange = "document.location.href = /Controller/Action/this.options[this.selectedIndex].value;" })
source share