28,406
社区成员
发帖
与我相关
我的任务
分享
<table style="width: 1120px; height: 120px;">
<tr>
<td style="width: 141px; height: 10px;" align="left" valign="middle">
<asp:TextBox runat="server" ID="TextBox1"></asp:TextBox></td>
<td style="width: 328px; height: 10px;" align="left">
<asp:CheckBoxList ID="aaa" runat="server" Height="24px" RepeatDirection="Horizontal"
Width="296px">
<asp:ListItem Value="1">a </asp:ListItem>
<asp:ListItem Value="2">b </asp:ListItem>
<asp:ListItem Value="3">c </asp:ListItem>
</asp:CheckBoxList>
</td>
<td style="height: 10px">
<asp:DropDownList ID="nodenameButton" runat="server">
<asp:ListItem>1 </asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 119px">
<asp:Button ID="submit" runat="server" Text="提交" OnClick="submit_Click" />
</tr>
</table>
protected void submit_Click(object sender, EventArgs e)
{
TextBox1.Enabled = false;
aaa.Enabled = false;
nodenameButton.Enabled = false;
Response.Write(TextBox1.Text);
Response.Write("<br />");
Response.Write(aaa.SelectedValue);
Response.Write("<br />");
Response.Write(nodenameButton.SelectedItem);
}