title: How to show selected value in DropDownList of MVC
body: <p>Below is my DropDownList in view</p>
  
  <pre><code>&lt;div class="col-xs-8 col-sm-8 col-md-4"&gt;                           
   @Html.DropDownList("Status",new List&lt;SelectListItem&gt; { new SelectListItem{ Text="Active", Value = "Active" },new SelectListItem{ Text="InActive", Value = "InActive" }}, new { @class = "form-control" })
  &lt;/div&gt; 
  </code></pre>
  
  <p>From DB value is coming either as "Active" or "Inactive" and dropdown has already these two value. And from my DB i'm assigning value in <code>ViewBag.IsStatus</code>.
  Now suppose my value is coming "InAactive" from DB then how to assign this as Selected value in Dropdown rather than to show First dropdown by default as selected.</p>