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

📄 gridviewusage.aspx

📁 有基本信息管理,名片管理,报表等等,这方便基本需求的朋友可以下载,然后再这上面去更改,有全部的源程序.
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GridViewUsage.aspx.cs" Inherits="GridViewUsage" %>

<!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>狂龙通讯录管理系统V2.0</title>
    <link rel="stylesheet" href="Styles/Style.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="text-align: center">
            <table style="width: 760px">
             <tr>
                 
                <td  colspan=2 style="height: 59px">
                    <h1>
                        <span style="font-family: 楷体_GB2312">添加好友信息</span></h1>
                </td>
               
                </tr>
                <tr>
                    <td colspan="2">
                        </td>
                </tr>
                <tr>
                    
                    <td colspan=2 style="height: 235px" align="left">
        <asp:DataGrid ID="GVUsage" runat="server" AllowPaging ="True"  AutoGenerateColumns="False" CellPadding="3" OnPageIndexChanged="GVUsage_PageIndexChanged1" DataKeyField="id" PageSize="5"  BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" Width="650px">
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign=Right NextPageText="下一页" PrevPageText="上一页" Mode="NumericPages" PageButtonCount="5" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
            <Columns>
                <asp:BoundColumn DataField="id" HeaderText="id" Visible="False" SortExpression="id asc"></asp:BoundColumn>
                <asp:BoundColumn DataField="userId" HeaderText="用户名"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdName" HeaderText="好友姓名"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdPhone" HeaderText="电话"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdMobilePhone" HeaderText="移动电话"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdAddress" HeaderText="地址"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdQQ" HeaderText="QQ"></asp:BoundColumn>
                <asp:BoundColumn DataField="frdEmail" HeaderText="Email"></asp:BoundColumn>
                <asp:HyperLinkColumn Text="详细信息" DataNavigateUrlField="id" DataNavigateUrlFormatString="Showfriendinf.aspx?UseId={0}" HeaderText="详细信息">
                    <ItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                        Font-Underline="False" Font-Names="隶书" Font-Size="15px"   HorizontalAlign="Center" VerticalAlign="Middle" />
                    <FooterStyle ForeColor="#0099CC" />
                </asp:HyperLinkColumn>
            </Columns>
       
           
        </asp:dataGrid>
        
                    </td>
                    
                </tr>
                <tr>
                    
                <td style="width: 650px;" colspan=2 align=left>
                <TABLE style="BORDER-COLLAPSE: collapse; height: 28px;" cellSpacing="0" bgColor="#6699cc" border="1" width="650">
    <TR>
     <td align="right" style="height: 15px; width: 666px;"><asp:linkbutton id="btnFirst" runat="server" CommandArgument="fist" CausesValidation="False" OnClick=PagerButtonClick style="color: black">首页</asp:linkbutton>&nbsp;&nbsp;
      <asp:linkbutton id="btnPrev" runat="server" CommandArgument="prev" CausesValidation="False" OnClick=PagerButtonClick style="color: black">上一页</asp:linkbutton>&nbsp;&nbsp;
      <asp:linkbutton id="btnNext" runat="server" CommandArgument="next" CausesValidation="False" OnClick=PagerButtonClick style="color: black">下一页</asp:linkbutton>&nbsp;&nbsp;
      <asp:linkbutton id="btnLast" runat="server" CommandArgument="last" CausesValidation="False" OnClick="PagerButtonClick" style="color: black">末页</asp:linkbutton>&nbsp;&nbsp;
      <asp:label id="lblCurrentIndex" runat="server"></asp:label>/<asp:label id="lblPageCount" runat="server"></asp:label>&nbsp;&nbsp; 
      跳转到<asp:TextBox id="txtGoPage" runat="server" Width="30px" CssClass="textbox"></asp:TextBox>
      <asp:Button id="btnGo" runat="server" Text="GO" CssClass="button" Width="80px" CausesValidation="False" OnClick="btnGo_Click" Height="22px"></asp:Button>
         </td>
    </TR>
   </TABLE>
                </td>
                </tr>
                <tr>
                    
                <td align=left style="width: 582px;" colspan=2>
                    <asp:Label ID="lblID" runat="server" Text="Label" Width="72px"></asp:Label><strong>的好友信息填写:</strong></td>
                </tr>
                <tr>
                <td rowspan=9 style="width: 163px">
                    &nbsp;&nbsp;<asp:Image ID="Image1" runat="server" Height="142px" ImageUrl="~/image/069cq[1].gif"
                        Width="92px" /></td>
                </tr>
               
                <tr>
                   
                <td  align=left style="width: 445px">
                    <strong>
                    姓 &nbsp; &nbsp; &nbsp; 名:</strong><asp:TextBox ID="textName" runat="server" Width="231px" OnTextChanged="textName_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="textName"
                        ErrorMessage="姓名不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <TR>
                    
                <TD  align=left style="width: 445px; height: 26px;">
                    <strong>
                    电话号码:</strong><asp:TextBox ID="textPhone" runat="server" Width="231px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="textPhone"
                        ErrorMessage="请输入7位或8位电话号码" ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}"></asp:RegularExpressionValidator></TD>
                </TR>
                <TR>
                    
                <TD align=left style="width: 445px">
                    <strong>手机号码:</strong><asp:TextBox ID="textMobile" runat="server" Width="231px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="textMobile"
                        ErrorMessage="请输入11位的手机号" ValidationExpression="\d{11}"></asp:RegularExpressionValidator></TD>
                </TR>
                <TR>
                    
                <TD align=left style="width: 445px">
                    <strong>
                    地 &nbsp; &nbsp; &nbsp; 址:</strong><asp:TextBox ID="textAddress" runat="server" Width="231px"></asp:TextBox></TD>
                </TR>
                <TR>
                    
                <TD align=left style="width: 445px">
                    <strong>
                    Q Q 号码:</strong><asp:TextBox ID="TextQQ" runat="server" Width="231px"></asp:TextBox></TD>
                </TR>
                <TR>
                    
                <TD  align=left style="width: 445px; height: 39px;" >
                    <strong>
                    E - &nbsp; &nbsp; mail:</strong><asp:TextBox ID="textEmail" runat="server" Width="231px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="textEmail"
                        ErrorMessage="邮箱格式不对" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></TD>
                </TR>
                <tr>
                    <td align="left" style="width: 445px; text-align: left; height: 16px;">
                        <strong>上传照片:<input id="Uploadpri" style="width: 333px" runat="server" type="file" /></strong></td>
                </tr>
                <tr>
                    <td  align="left" style="width: 445px; position: static; height: 26px;">
                        &nbsp;<strong style="visibility: visible; text-align: center">好友概况: &nbsp;<asp:TextBox
                            ID="txtgeneral" runat="server" Height="220px" TextMode="MultiLine" Width="370px"></asp:TextBox></strong></td>
                </tr>
                <tr>
                    
                    <td align=center  colspan=2>
                    <asp:Button ID="BtnAdddata" runat="server" Text="添加" OnClick="BtnAdddata_Click" Width="80px" />
                        <asp:Button ID="Button1" runat="server" CausesValidation="False" OnClick="Button1_Click"
                            Text="重置" Width="80px" />
                        <asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="Button2_Click"
                            Text="刷新" Width="80px" />
                        </td></tr>
                    <tr>
                        
                    <td colspan=2 align=center>
                    <asp:Label runat="server" ID="lblmsg" BackColor="White" BorderColor="White" ForeColor="Red"></asp:Label>
                    </td>
                    </tr>
                <TR>
                    
                <TD  colspan=2  align="center" style="height: 9px">
                    <a href="mailto:zhouwei8879576@163.com" style="color: black; font-style: normal; font-family: 隶书; font-variant: normal; text-decoration: none">
                        <strong>2008狂龙制作zhouwei8879576@163.com</strong></a></TD>
                </TR>
            </table>
        </div>
    
    </div>
  </form>
    
</body>
</html>

⌨️ 快捷键说明

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