Description
You can use another overload of the DropDownList
method. Pick the one you need and pass in
a object with your html attributes.
Sample
@Html.DropDownList("CategoryID", null, new { @onchange="location = this.value;" })
You can use another overload of the DropDownList
method. Pick the one you need and pass in
a object with your html attributes.
@Html.DropDownList("CategoryID", null, new { @onchange="location = this.value;" })