Asp.net源码专业站
首页->尚未分类->狂龙通讯录管理系统2.0源码>>editorGridview.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:狂龙通讯录管理系统2.0源码
当前文件:文件类型 KuangLongCommunicationV2/editorGridview.aspx[6K,2009-6-12 11:46:37]打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editorGridview.aspx.cs" Inherits="editorGridview" %> 2 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5<html xmlns="http://www.w3.org/1999/xhtml" > 6<head runat="server"> 7 <title>狂龙通讯录管理系统V2.0</title> 8 <link rel=stylesheet href="Styles/Style.css" type="text/css" /> 9</head> 10<body> 11 <form id="form1" runat="server"> 12 <div> 13 14 </div> 15 <table align=center > 16 <tr> 17 <td align=center> 18 <h1> 19 <span style="font-family: 楷体_GB2312">修改好友信息</span></h1></td> 20 </tr> 21 <tr> 22 <td > 23 <asp:GridView ID="GVuseage" runat="server" OnRowDeleting="GVuseage_RowDeleting" AutoGenerateColumns="False" CellPadding="3" OnRowCancelingEdit="GVuseage_RowCancelingEdit" OnRowEditing="GVuseage_RowEditing" Width="729px" OnRowUpdating="GVuseage_RowUpdating" AllowPaging="True" PageSize="5" OnPageIndexChanging="GVuseage_PageIndexChanging" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"> 24 <Columns> 25 <asp:BoundField DataField="id" HeaderText="id" Visible="False" /> 26 <asp:TemplateField HeaderText="用户名"> 27 <ItemTemplate> 28 <asp:Label ID="lblusername" runat="server" Text='<%# Bind("userId") %>'></asp:Label> 29 </ItemTemplate> 30 </asp:TemplateField> 31 <asp:BoundField DataField="frdName" HeaderText="好友姓名" /> 32 <asp:TemplateField HeaderText="好友电话"> 33 <EditItemTemplate> 34 <asp:TextBox ID="txtphone" runat="server" Text='<%#Bind("frdPhone") %>'></asp:TextBox> 35 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtphone" 36 Display="Dynamic" ErrorMessage="请输入7位或8位电话号码" ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}"></asp:RegularExpressionValidator> 37 </EditItemTemplate> 38 <ItemTemplate> 39 <asp:Label ID="lblphone" runat="server" Text='<%#Bind("frdPhone") %>' ></asp:Label> 40 </ItemTemplate> 41 </asp:TemplateField> 42 <asp:TemplateField HeaderText="好友手机"> 43 <EditItemTemplate> 44 <asp:TextBox ID="txtMobilePhone" runat="server" Text='<%#Bind("frdMobilePhone") %>'>'></asp:TextBox> 45 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtMobilePhone" 46 Display="Dynamic" ErrorMessage="请输入11位手机号码" ValidationExpression="\d{11}"></asp:RegularExpressionValidator> 47 </EditItemTemplate> 48 <ItemTemplate> 49 <asp:Label ID="lblMobilePhone" runat="server" Text='<%#Bind("frdMobilePhone") %>'>'></asp:Label> 50 </ItemTemplate> 51 </asp:TemplateField> 52 <asp:BoundField DataField="frdAddress" HeaderText="地址" /> 53 <asp:BoundField DataField="frdQQ" HeaderText="QQ" /> 54 <asp:TemplateField HeaderText="Email"> 55 <EditItemTemplate> 56 <asp:TextBox ID="txtEmail" runat="server" Text='<%#Bind("frdEmail") %>'>'></asp:TextBox> 57 <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtEmail" 58 Display="Dynamic" ErrorMessage="请输入正确E_mail地址" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> 59 </EditItemTemplate> 60 <ItemTemplate> 61 <asp:Label ID="lblEmail" runat="server" Text='<%#Bind("frdEmail") %>'>'></asp:Label> 62 </ItemTemplate> 63 </asp:TemplateField> 64 <asp:TemplateField HeaderText="好友概况"> 65 <EditItemTemplate> 66 <asp:TextBox ID="txtGeneral" runat="server" Text='<%#Bind("General") %>' Height="160px" TextMode="MultiLine" Width="220px"></asp:TextBox> 67 68 </EditItemTemplate> 69 <ItemTemplate> 70 <asp:Label ID="lblshowfriend" Text='<%#Bind("General") %>' runat="server"></asp:Label> 71 </ItemTemplate> 72 </asp:TemplateField> 73 <asp:CommandField ButtonType="Button" ShowEditButton="True" /> 74 </Columns> 75 <FooterStyle BackColor="White" ForeColor="#000066" /> 76 <RowStyle ForeColor="#000066" /> 77 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> 78 <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Right" /> 79 <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> 80 </asp:GridView> 81 </td> 82 </tr> 83 <tr> 84 <td style="width: 725px; height: 21px;" align=right> 85 <asp:Button ID="Btnfirst" runat="server" Text="首页" OnClick="Btnfirst_Click" Width="80px" /> 86 <asp:Button ID="Btndescend" runat="server" Text="上一页" OnClick="Btndescend_Click" Width="80px" /> 87 <asp:Button ID="Btnretrusive" runat="server" Text="下一页" OnClick="Btnretrusive_Click" Width="80px" /> 88 <asp:Button ID="Btnfinally" runat="server" Text="尾页" OnClick="Btnfinally_Click" Width="80px" /></td> 89 </tr> 90 <tr> 91 <td align=center style="width: 725px"><asp:Label ID="lblmsg" runat=server Text=""></asp:Label> 92 </td> 93 </tr> 94 </table> 95 </form> 96</body> 97</html> 98
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:狂龙通讯录管理系统2.0源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146