SQLiteDemo/Default.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SQLiteDemo._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 width="800" border="0" align="center" cellpadding="0" cellspacing="5">
        <tr>
            <td>
                Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="txt_name" runat="server"></asp:TextBox><br />
                Password <asp:TextBox ID="txt_pwd" runat="server"></asp:TextBox><br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btn_add" runat="server" Text="Append" OnClick="btn_add_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lab_Error" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="UserList" DataKeyNames="UserID"  runat="server" AutoGenerateColumns="False" 
                    onpageindexchanging="UserList_PageIndexChanging" 
                    onrowcancelingedit="UserList_RowCancelingEdit" 
                    onrowcommand="UserList_RowCommand" onrowdatabound="UserList_RowDataBound" 
                    onrowediting="UserList_RowEditing" onrowupdating="UserList_RowUpdating" 
                    Width="468px">
                    <Columns>
                        <asp:BoundField DataField="UserID" HeaderText="ID" ReadOnly="true" >
                        <HeaderStyle HorizontalAlign="Center" Width="80px" />
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="UserName">
                            <EditItemTemplate>
                                <asp:TextBox ID="UserName" runat="server" Text='<%# Eval("UserName") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                            </ItemTemplate>
                             <HeaderStyle HorizontalAlign="Center" Width="120px" />
                        <ItemStyle Width="120px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="CreateTime" HeaderText="CreateTime" ReadOnly="true" >
                         <HeaderStyle HorizontalAlign="Center" Width="140px" />
                        <ItemStyle HorizontalAlign="Center" Width="140px" />
                        </asp:BoundField>
                        <asp:TemplateField ShowHeader="False">
                            <EditItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                    CommandName="Update" Text="Update"></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                    CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                    CommandName="Edit" Text="Edit"></asp:LinkButton>
后面还有 20 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。