怎样从后台读取前台页中checkbox的值
default.aspx页面代码如下:
<div class="易做图">
性别:<input type="radio" id="易做图_male" name="易做图" checked="checked" /><label for="易做图_male">男</label>
<input name="易做图" type="radio" id="易做图_female" /><label for ="易做图_female">女</label>
</div>
怎样在default.cs页面读取default.aspx页面中选定的到底是“男”还是“女”????? --------------------编程问答--------------------
--------------------编程问答-------------------- string Sex = Request.Form["易做图"];up --------------------编程问答-------------------- post 还是get? --------------------编程问答-------------------- Request.Form["Sex"]
string Sex = Request.Form["易做图"];
up( 1楼,2楼) --------------------编程问答-------------------- 添加一个ruanat="server" 比如:<input type="radio" id="易做图_male" name="易做图" checked="checked" ruanat="server" /><label for="易做图_male">男</label> ,这样在后台就可以直接读取了
补充:.NET技术 , ASP.NET