string name = Request["checkbox"];
为什么我的name得不到值呢?前台<form id="form1" runat="server" method="post" name="myform" action="Frm_Cart.aspx">
<%=str %>
表是用
str += "<table width='100%' border='0' cellpadding='2' cellspacing='0' id='buybook'>"
+ "<tr><td> </td><td style='width: 500px'>名称</td><td style='width: 66px'>价格</td><td style='width: 48px'>选择</td><td>详细说明</td></tr>"
+ "<tr><td> </td><td style='width: 500px'>" + bookname + "</td><td style='width: 66px'>" + bookprice + "</td><td style='width: 48px'><input type='checkbox' name='checkbox' value='" + vl + "' /></td><td><a href='#' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image3','','images/xx_2.jpg',1)'><img src='images/xx_1.jpg' name='Image3' width='66' height='22' border='0' /></a></td></tr>" + str1 + "</table>";
是在后台代码动态加的。。
大哥大姐们快来帮帮我吧
为什么我的name得不到值呢?前台<form id="form1" runat="server" method="post" name="myform" action="Frm_Cart.aspx">
<%=str %>
表是用
str += "<table width='100%' border='0' cellpadding='2' cellspacing='0' id='buybook'>"
+ "<tr><td> </td><td style='width: 500px'>名称</td><td style='width: 66px'>价格</td><td style='width: 48px'>选择</td><td>详细说明</td></tr>"
+ "<tr><td> </td><td style='width: 500px'>" + bookname + "</td><td style='width: 66px'>" + bookprice + "</td><td style='width: 48px'><input type='checkbox' name='checkbox' value='" + vl + "' /></td><td><a href='#' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image3','','images/xx_2.jpg',1)'><img src='images/xx_1.jpg' name='Image3' width='66' height='22' border='0' /></a></td></tr>" + str1 + "</table>";
是在后台代码动态加的。。
大哥大姐们快来帮帮我吧
谁能帮我解决一下啊。。解决了我追加100分
要不把Request["参数"](我从不用这个)
改成Request.Form["参数"].
但估计问题不在这里
我改过了。。但是还是不行啊。。
郁闷我要疯了。。大侠们快来咯。。小弟不胜感激