输入框为服务器端运行
Label
<asp:Label id="Label1" runat="server">Label</asp:Label>
<asp:Button id="Button3" runat="server" Text="Button"></asp:Button>
<input type="text" id="rd" runat="server" name="rd">
<INPUT class="ButtonCopy" onclick="Done();" type="button" value="确 定">
代码
private void Button3_Click(object sender, System.EventArgs e)
{
Label1.Text = "选择的行号:" + Request.Form["rad"].ToString();
rd.Value = Request.Form["rad"].ToString();
}
<asp:Label id="Label1" runat="server">Label</asp:Label>
<asp:Button id="Button3" runat="server" Text="Button"></asp:Button>
<input type="text" id="rd" runat="server" name="rd">
<INPUT class="ButtonCopy" onclick="Done();" type="button" value="确 定">
代码
private void Button3_Click(object sender, System.EventArgs e)
{
Label1.Text = "选择的行号:" + Request.Form["rad"].ToString();
rd.Value = Request.Form["rad"].ToString();
}