Htm控件
今天学习Html控件 提交传值
A.aspx
<form action ="B.aspx" name="form1" method="post"> 此处添加 action 和method
1、input file 控件
<input id="File1" type="file" name="shangc"/> 其中的name 是自己添加和命名
2、select 选择控件
<select id="Select1" name="D1">
<option>男</option>
<option>女</option>
</select>
B.aspx
后台代码:
Response.Write("上传:" + Request.Form ["shangc"].ToString ()+ "<br/>");
Response.Write("选择:" + Request.Form ["D1"].ToString ()+ "<br/>");

浙公网安备 33010602011771号