
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x52;&#x61;&#x64;&#x69;&#x6F;&#x42;&#x75;&#x74;&#x74;&#x6F;&#x6E;&#x63A7;&#x4EF6;&#x5206;&#x7EC4;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x38;&#x2D;&#x30;&#x38;&#x2D;&#x32;&#x30;&#x20;&#x30;&#x33;&#x3A;&#x32;&#x32;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5982;&#x679C;&#x8981;&#x5BF9;RadioButton&#x63A7;&#x4EF6;&#x8FDB;&#x884C;&#x5206;&#x7EC4;&#xFF0C;&#x5C31;&#x8981;&#x4F7F;&#x7528;&#x5230;&#x5176;GroupName&#x5C5E;&#x6027;&#xFF0C;GroupName&#x503C;&#x76F8;&#x540C;&#x7684;&#x63A7;&#x4EF6;&#x88AB;&#x8BA4;&#x4E3A;&#x662F;&#x4E00;&#x7EC4;&#x7684;&#xFF0C;&#x5728;&#x540C;&#x4E00;&#x7EC4;RadioButton&#x63A7;&#x4EF6;&#x4E2D;&#x4F60;&#x59CB;&#x7EC8;&#x53EA;&#x80FD;&#x9009;&#x62E9;&#x4E00;&#x9879;&#xFF0C;&#x4F46;RadioButton&#x63A7;&#x4EF6;&#x7684;&#x5206;&#x7EC4;&#x5C5E;&#x6027;GroupName&#x4F3C;&#x4E4E;&#x4E5F;&#x4EC5;&#x4EC5;&#x662F;&#x8D77;&#x5206;&#x7EC4;&#x7684;&#x4F5C;&#x7528;&#x800C;&#x5DF2;&#xFF0C;&#x5BF9;&#x83B7;&#x53D6;&#x9009;&#x4E2D;&#x9879;&#x7684;&#x503C;&#x4E00;&#x70B9;&#x5E2E;&#x52A9;&#x90FD;&#x6CA1;&#x6709;(&#x4E2A;&#x4EBA;&#x89C2;&#x70B9;)&#xFF0C;&#x800C;&#x4F7F;&#x7528;RadioButtonList&#x4F3C;&#x4E4E;&#x662F;&#x66F4;&#x597D;&#x7684;&#x65B9;&#x6848;&#xFF0C;&#x540C;&#x4E00;&#x4E2A;RadioButtonList&#x7684;&#x9009;&#x9879;&#x81EA;&#x7136;&#x88AB;&#x8BA4;&#x4E3A;&#x662F;&#x4E00;&#x7EC4;&#xFF0C;&#x5E76;&#x4E14;&#x83B7;&#x53D6;&#x9009;&#x4E2D;&#x9879;&#x7684;&#x503C;&#x4E5F;&#x6BD4;RadioButton&#x597D;&#x591A;&#x4E86;&#x3002;<br/>Test.aspx:<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ Page Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;Test.aspx.cs&#34; Inherits=&#34;Test&#34; %&gt;<br/>&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt;<br/>&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &gt;<br/>&lt;head runat=&#34;server&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;RadioButton&#x5206;&#x7EC4;&lt;/title&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:RadioButton ID=&#34;RadioButton1&#34; Checked=&#34;true&#34; runat=&#34;server&#34; GroupName=&#34;Color&#34; Text=&#34;Red&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:RadioButton ID=&#34;RadioButton2&#34; runat=&#34;server&#34; GroupName=&#34;Color&#34; Text=&#34;White&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:RadioButtonList ID=&#34;Sex&#34; runat=&#34;server&#34; RepeatColumns=&#34;3&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:ListItem Value=&#34;1&#34; Sel&#101;cted=&#34;true&#34;&gt;Boy&lt;/asp:ListItem&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:ListItem Value=&#34;2&#34;&gt;Girl&lt;/asp:ListItem&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/asp:RadioButtonList&gt;&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:Button ID=&#34;Button1&#34; runat=&#34;server&#34; Text=&#34;Submit&#34; OnClick=&#34;Button1_Click&#34; /&gt;&lt;br /&gt;&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:Label ID=&#34;Label1&#34; runat=&#34;server&#34; Text=&#34;Label&#34;&gt;&lt;/asp:Label&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/>Test.aspx.cs:<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using System;<br/>using System.Data;<br/>using System.Configuration;<br/>using System.Collections;<br/>using System.Web;<br/>using System.Web.Security;<br/>using System.Web.UI;<br/>using System.Web.UI.WebControls;<br/>using System.Web.UI.WebControls.WebParts;<br/>using System.Web.UI.HtmlControls;<br/>public partial class Test : System.Web.UI.Page<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;protected void Page_Load(object sender, EventArgs e)<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;summary&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;/// &#x663E;&#x793A;&#x9009;&#x4E2D;&#x503C;<br/>&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;/summary&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;param name=&#34;sender&#34;&gt;&lt;/param&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;param name=&#34;e&#34;&gt;&lt;/param&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;protected void Button1_Click(object sender, EventArgs e)<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Label1.Text = &#34;&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&#x904D;&#x5386;Color&nbsp;&nbsp;GroupName&#x5C5E;&#x6027;&#x4EC5;&#x8D77;&#x5206;&#x7EC4;&#x4F5C;&#x7528;,&#x5BF9;&#x53D6;&#x503C;&#x6BEB;&#x65E0;&#x5E2E;&#x52A9;? &#x6709;&#x7B49;&#x7814;&#x7A76;!<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (RadioButton1.Checked) Label1.Text += &#34;Color&#34; + &#34;&#xFF1A;&#34; + RadioButton1.Text;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (RadioButton2.Checked) Label1.Text += &#34;Color&#34; + &#34;&#xFF1A;&#34; + RadioButton2.Text;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Label1.Text += &#34;&lt;br/&gt;&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&#x83B7;&#x53D6;Sex&#x503C;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Label1.Text += &#34;Sex&#34; + &#34;&#xFF1A;&#34; + Sex.Sel&#101;ctedItem.Value.ToString() + &#34;(&#34; + Sex.Sel&#101;ctedItem.Text + &#34;)&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/>&#x6CE8;&#x610F;RadioButtonList&#x63A7;&#x4EF6;&#x7684;RepeatColumns&#x5C5E;&#x6027;&#xFF0C;&#x5C06;&#x8BBE;&#x7F6E;&#x540C;&#x4E00;&#x884C;&#x4E0A;&#x663E;&#x793A;&#x7684;&#x9009;&#x9879;&#x6570;&#x76EE;&#xFF0C;&#x8FD9;&#x5BF9;&#x8981;&#x5C06;&#x591A;&#x4E2A;&#x9009;&#x9879;&#x6A2A;&#x5411;&#x6392;&#x5217;&#x65F6;&#x7279;&#x522B;&#x6709;&#x7528;&#xFF01;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x52;&#x61;&#x64;&#x69;&#x6F;&#x42;&#x75;&#x74;&#x74;&#x6F;&#x6E;&#x63A7;&#x4EF6;&#x5206;&#x7EC4;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
