Index.aspx
(完整代码) 2KB<%@ Page Language="C#" MasterPageFile="~/site1.master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MySite.index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" bgcolor="#FFFFFF" width="100%" cellspacing="0" cellpadding="0">
<tr><td>
<asp:Label runat="server" Text="Id/姓名:"></asp:Label>
<asp:TextBox runat="server" ID="txtIdOrName" ></asp:TextBox>
<asp:Label runat="server" Text="性别:"></asp:Label>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" AutoPostBack="true" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Selected="True">全部</asp:ListItem>
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList>
<asp:Button runat="server" Text="查询" ID="btnQuery" OnClick="btnQuery_Click" />
</td></tr>
</table>
<hr/>
<asp:GridView ID="GridView1" runat="server" BorderWidth="1" Width="100%" AutoGenerateColumns="False" CellPadding="4"
ForeColor="#333333" GridLines="None" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" >
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="Id" HeaderText="用户ID" ReadOnly="True" />
<asp:BoundField DataField="Name" HeaderText="用户姓名" ReadOnly="True"/>
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:CommandField HeaderText="编辑" ShowEditButton="True" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
</Columns>
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<%--<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />--%>
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</asp:Content>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。