 <p>You do not need to get the category object, you can just create a new category object and dynamically set the id.</p> <pre><code>var dropdown = (DropDownList)MyFormView.FindControl("dropdown"); var id = dropdown.SelectedValue; item.Category = new Category { CategoryId = id }; </code></pre>