问题描述
<headrunat="server"><title>寝室管理</title><LINKhref="../css/style.css"type="text/css"rel="stylesheet"><script>functionmodify(){len=0values=0;varnums=parseInt(Form1.num.value);if(nums==1){if(Form1.Id.checked==true){len=1values=Form1.Id.value;}}else{for(vari=0;i<nums;i++){if(Form1.Id[i].checked==true){len=1values=Form1.Id[i].value;}}}if(len==0){oks("请选择寝室!");returnfalse;}else{window.location="SelectBedmarker.aspx?Id="+values;}}</script></head><bodybgColor="#ffffff"leftMargin="0"topMargin="0"><formid="Form1"method="post"runat="server"><tableid="Table11"cellSpacing="0"cellPadding="0"width="97%"align="center"border="0"><tr><tdvAlign="top"align="center"><tableheight="440"cellSpacing="0"cellPadding="0"width="100%"border="0"><tr><tdvAlign="top"><tablecellSpacing="0"cellPadding="0"width="100%"border="0"><tr><tdvAlign="top"><tablecellSpacing="0"cellPadding="0"width="100%"border="0"><tr><tdheight="10"></td></tr></table><tablecellSpacing="0"cellPadding="0"width="100%"border="0"><tr><tdwidth="5"></td><tdstyle="FONT-WEIGHT:bold;FONT-SIZE:11pt;COLOR:highlight;TEXT-DECORATION:none"bgColor="#d3d3d3"> 选择寝室</td></tr></table><divstyle="OVERFLOW:auto;WIDTH:100%;HEIGHT:370px;"align="left"><asp:datagridid="Dg_Directory"runat="server"AutoGenerateColumns="False"Width="100%"HorizontalAlign="Left"AllowPaging="True"CssClass="listtitle"onItemDataBound="bind"CellPadding="1"CellSpacing="1"GridLines="None"BackColor="White"PageSize="10"><HeaderStyleHorizontalAlign="Center"VerticalAlign="Middle"BackColor="LightGray"></HeaderStyle><ItemStyleCssClass="listtext"></ItemStyle><Columns><asp:TemplateColumn><ItemTemplate><inputtype="radio"name="Id"value='<%#DataBinder.Eval(Container.DataItem,"Id")%>'></ItemTemplate></asp:TemplateColumn><asp:BoundColumnSortExpression="Room"DataField="Room"HeaderText="寝室编号"><ItemStyleWrap="False"HorizontalAlign="center"></ItemStyle></asp:BoundColumn><asp:BoundColumnSortExpression="Money"DataField="Money"HeaderText="费用(人/天)"><ItemStyleWrap="False"HorizontalAlign="center"></ItemStyle></asp:BoundColumn><asp:BoundColumnSortExpression="Famleormale"DataField="Famleormale"HeaderText="属性"><ItemStyleWrap="False"HorizontalAlign="center"></ItemStyle></asp:BoundColumn></Columns><PagerStyleVisible="False"></PagerStyle></asp:DataGrid></div></td></tr></table><inputid="Hidden1"type="hidden"runat="server"/> <cc1:PageControlsID="Page1"runat="server"></cc1:PageControls><inputid="sortfield"type="hidden"value="Roomdesc"name="sortfield"runat="server"><inputid="sortval"type="hidden"name="sortval"runat="server"><inputid="num"type="hidden"name="num"runat="server"><inputtype="hidden"name="Img"><inputtype="hidden"name="Messages"><inputtype="hidden"name="Button_Value"></td></tr><tr><tdvAlign="top"align="center"><tableid="Table15"style="WIDTH:546px;HEIGHT:50px"cellSpacing="0"cellPadding="0"width="546"border="0"><tr><tdalign="left"width="79%"height="39"> <TABLEid="Table13"cellSpacing="0"cellPadding="0"width="46%"bgColor="#999999"border="0"><TRclass="function"bgColor="#ffffff"><TD><inputvalue="确认"name="butt"type="button"onclick="modify()"class="input-button"></TD><TD><INPUTclass="input-button"onclick="javascript:window.parent.close();"type="button"value="放弃"></TD><TD><FONTface="宋体"></FONT></TD></TR></TABLE></td><tdalign="right"width="21%"><FONTface="宋体"></FONT></td></tr><tr><tdcolSpan="3"height="10"></td></tr></table></td></tr></table></td></tr></table></form></body>这个错误在141行根本就没有141,请大家帮帮忙帮我解决这问题objectdoesn'tsupportthispropertyormethod
解决方案
解决方案二:
Form1.num.valueForm1.Id.checked...都需要debug下,看下是否取得对象,提示应该是没取到对象或者对象没那个属性在浏览器里,ie用开发人员工具,ff,用firebug