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

📄 default.aspx

📁 gridview右键菜单,可实现查看修改
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.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>
    <title></title>
    <script type="text/javascript" src="default.js"></script>
    <style type="text/css">
    #divh { position:absolute; z-index:1001; left:40%; top:30%; width:300px; margin-left:-200px; border:solid 6px #ddd; }
    .box { border:solid 1px #999; font-size:12px; }
    #tit { border-bottom:solid 1px #999;background-color:#cccccc; padding:6px; font-weight:bold;}
    #bod { background-color:#ffffff; padding:20px; }
    #bot { border-top:solid 1px #999;background-color:#cccccc; text-align:right;}
    .menu { position:absolute; z-index:101; width:100px; border:solid 1px #999; padding:2px; background-color:#ffffff;}
    .menu a { display:block; padding:3px 6px; font-size:12px; color:#000000; cursor:default; text-decoration:none; }
    .menu a:hover { background-color:#507cd1; color:#ffffff;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" Width="260" Font-Size="10">
                <RowStyle BackColor="#EFF3FB" HorizontalAlign="center" />
                <Columns>
                    <asp:BoundField DataField="_id" HeaderText="编号" />
                    <asp:BoundField DataField="_name" HeaderText="姓名" />
                    <asp:BoundField DataField="_sex" HeaderText="性别" />
                    <asp:BoundField DataField="_age" HeaderText="年龄" />
                </Columns>
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </div>
        <div id="divh" style="display: none;">
        <div class="box">
        <div id="tit"></div>
        <div id="bod"></div>
        <div id="bot"></div>
        </div>
        </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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