rus tan

rus tan

  • 1.9k
  • 52
  • 3.3k

how to make database details as option

Oct 29 2019 10:06 PM
<div class="col-sm-5">
<div class="form-group row">
<label asp-for="Course_Name" class="control-label">Course:</label>
<select id="Course_Name" name="Course_Name"></select>
<option value="@Model[0].Course_Name"></option>
</div>
</div>
<div class="col-sm-5">
<div class="form-group row">
<label asp-for="Start_Date" class="control-label">Start Date:</label>
<select id="Start_Date" name="Start_Date"></select>
<option value="@Model[0].Start_Date"></option>
</div>
</div>>
<div class="col-sm-5">
<div class="form-group row">
<label asp-for="End_Date" class="control-label">End Date:</label>
<select id="End_Date" name="End_Date"></select>
<option value="@Model[0].End_Date"></option>
</div>
</div>>
what is the correct way of making this work ?   

Answers (5)