devicesearch.aspx

来自「纯代码实现了从Oracle数据库中调用并添加、修改、删除设备信息表记录的功能。」· ASPX 代码 · 共 45 行

ASPX
45
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeviceSearch.aspx.cs" Inherits="DeviceSearch" %>



<!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">
    <div>
   
        &nbsp;<br />
        <br />
        &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
            <asp:ListItem>装置编号</asp:ListItem>
            <asp:ListItem>装置名称</asp:ListItem>
            <asp:ListItem>装置型号</asp:ListItem>
            <asp:ListItem>装置状态</asp:ListItem>
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList2" runat="server" Width="110px">
        </asp:DropDownList>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="查询" Width="47px" />
        <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="查看全部" /><br />
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#336666"
            BorderStyle="Double" BorderWidth="3px" CellPadding="4" Height="196px" Width="772px" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDeleting="GridView1_RowDeleting">
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加设备" />
        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改设备信息" /><br />
        &nbsp;&nbsp;
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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