【发布时间】:2016-06-14 20:45:43
【问题描述】:
我有一些用 html 编写的页面,所有控件都使用 html 格式,就像文本框一样,我无法将这些控件更改为 @html.text。 但我必须从控制器中获取数据并对数据执行一些逻辑。有人可以告诉我如何获取数据吗? 这是我认为用html编写的html代码
<div class="clearfix"></div>
<label class="label">Customer Name</label>
<select class="browser-default" name="Customername">
<option value="Customer Name1">Customer Name1</option>
<option>Customer Name2</option>
<option>Customer Name3</option>
</select>
<div class="pull-left"><a href="#" class="newCustomer">New Customer</a></div>
<div class="clearfix"></div>
<label class="label">Job Referene</label>
<select class="browser-default" name="jobreference">
<option>Job Referene</option>
</select>
<div class="clearfix"></div>
<label class="label">Quantity</label>
<input type="text" name="quantity" />
<div class="clearfix"></div>
<label class="label">Browser Select</label>
<select class="browser-default">
<option value="" disabled selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
我想在我的控制器中获取数据。
【问题讨论】:
标签: c# html asp.net-mvc asp.net-mvc-4 model-view-controller