62,041
社区成员
发帖
与我相关
我的任务
分享
<%@ Page language="c#" Codebehind="WebForm32.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm32" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm32</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<input id="sexID1" name="sex" style="WIDTH: 30px" checked type='radio' value='sex0'>
<label for="sexID1">男 </label><input id="sexID2" name="sex" style="WIDTH: 30px" type='radio' value='sex1'>
<label for="sexID2">女
<asp:Button id=Button1 style="Z-INDEX: 101; LEFT: 48px; POSITION: absolute; TOP: 96px" runat="server" Text="Button"></asp:Button> </label>
</form>
</body>
</HTML>
cs文件:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write(Request.Form["sex"]);
}