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