创建一个普通的HTML页面作为视图,并使用
表单集合
在操作中,获取所有表单值。工作得很好,
但是在编辑视图中,如何像下面的html页面/视图那样填充编辑视图。
用于保存和编辑的HTML视图
<div class="hideDiv current" id="DemographicsDetail" style="display: block;">
<div class="form-group" id="'1'">
<label class="control-label">First Name</label>
<input class="form-control input-medium" name="1" placeholder="First Name" type="text" value="" required="">
</div>
<div class="form-group" id="'6'">
<label class="control-label">Date of Birth</label> (<small style="font-style:italic">mm//dd/yyyy</small>)
<input class="form-control form-control-inline input-medium date-picker" name="6" size="16" type="date" value="" required="">
</div>
<div class="form-group" id="'4'">
<label class="'control-label">Height</label> (<small style="font-style:italic">Inches</small>)
<input class="form-control input-medium decimalonly" name="4" placeholder="Inches" type="number" value="" required="" data-original-title="" title="">
</div>
<div class="form-group" id="395">
<label class="control-label text-primary" style="font-weight: bold;"></label><br>
<label class="control-label">Company Name</label><br>
<select class="form-control input-medium" id="Test_395_Company_Name__c42fc5d4-58da-408b-a2d6-9c4f0a312631__395" name="Test_395_Company Name_[c42fc5d4-58da-408b-a2d6-9c4f0a312631].395">
<option value="">-- Select--</option>
<option value="229">Progressive Physical Therapy -Congaree</option>
<option value="231">Progressive Physical Therapy</option>
<option value="233">Progressive Physical Therapy -Congaree</option>
<option value="234">Progressive Physical Therapy -Simpsonville</option>
<option value="235">Progressive Physical Therapy -Hillcrest</option>
</select>
</div>
</div>
如何从控制器响应中填充HTML视图?