<td colspan="2"> <asp:RadioButton ID="rbtnOrdinary" runat="server" GroupName="Warehouse" Text="普通入仓" Checked="True" OnCheckedChanged="Warehouse_CheckedChanged" /> <asp:RadioButton ID="rbtnProject" runat="server" GroupName="Warehouse" Text="项目入仓" OnCheckedChanged="Warehouse_CheckedChanged" /> </td>
protected void Warehouse_CheckedChanged(object sender, EventArgs e) { if (rbtnOrdinary.Checked = true) trProject.Visible = false; else if (rbtnProject.Checked = true) trProject.Visible = true; }
我调试了,根本进不来这个方法,奇怪勒