⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radiobutton.aspx

📁 关于ASP.NET制作程序模块
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="RadioButton.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <table style="border:solid 1px green;width:40%">
	        <tr>    
		        <td style="background-color:Green" colspan="2">
                    <strong><span style="font-size: 14pt; color: #ffffff">
                    RadioButton控件和RadioButton控件应用</span></strong></td>
            </tr>
            <tr>
                <td width="28%">
                    排列方式:</td>
                <td>
                    &nbsp;<asp:RadioButton ID="RadioButton2" runat="server" Text="竖排列" GroupName="r1" AutoPostBack="True" OnCheckedChanged="RadioButton2_CheckedChanged" Checked="True" />
        <asp:RadioButton ID="RadioButton1" runat="server" OnCheckedChanged="RadioButton1_CheckedChanged"
            Text="横排列" GroupName ="r1" AutoPostBack="True" /></td>
            </tr>
            <tr>
                <td>
                    最爱吃的一种水果</td>
                <td>
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
            <asp:ListItem>香蕉</asp:ListItem>
            <asp:ListItem>桃子</asp:ListItem>
            <asp:ListItem>苹果</asp:ListItem>
            <asp:ListItem>香果</asp:ListItem>
            <asp:ListItem>西瓜</asp:ListItem>
            <asp:ListItem>波罗</asp:ListItem>
        </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td>
                    显示结果</td>
                <td>
        <asp:Label ID="labresual" runat="server"></asp:Label></td>
            </tr>
        </table>

    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -