<form action="/Home/Add" id="myform" method="post" style="border:1px solid #ff0000">
<table>
<tr>
<td>姓名:</td>
<td><input type="text" id="name" name="name" placeholder="请输入姓名" value="" /></td>
</tr>
<tr>
<td>年龄:</td>
<td>
<select id="age" name="age">
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
</select>
</td>
</tr>
<tr>
<td><input type="submit" id="btn_add_1" value="添加" /></td>
</tr>
</table>
</form>
public ActionResult Add_1(FormCollection form)
{
List<string> str = new List<string>();
foreach (var _key in args.Keys) {
str.Add(_key + ":" + args[_key.ToString()]);
}
Log(new JavaScriptSerializer().Serialize(str));
string name =form["name"];
int age = Convert.ToInt32(form["age"]);
return View();
}