您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->小范企业管理源码>>admin/link_admin.aspx>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:小范企业管理源码


当前文件路径:XiaoFanWeb/admin/link_admin.aspx 文件类型
普通视图
		            
1<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="link_admin.aspx.cs" Inherits="admin_link_admin" Title="Untitled Page" %> 2<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> 3</asp:Content> 4<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 5 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 6 AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Id" DataSourceID="AccessDataSource1" 7 ForeColor="#333333" GridLines="None" Width="650px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"> 8 <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> 9 <Columns> 10 <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> 11 <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" 12 SortExpression="Id" /> 13 <asp:TemplateField HeaderText="Name" SortExpression="Name"> 14 <EditItemTemplate> 15 <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Name") %>' Width="80px"></asp:TextBox> 16 </EditItemTemplate> 17 <ItemTemplate> 18 <asp:Label ID="Label2" runat="server" Text='<%# Bind("Name") %>'></asp:Label> 19 </ItemTemplate> 20 </asp:TemplateField> 21 <asp:TemplateField HeaderText="Url" SortExpression="Url"> 22 <EditItemTemplate> 23 <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Url") %>' Width="80px"></asp:TextBox> 24 </EditItemTemplate> 25 <ItemTemplate> 26 <asp:Label ID="Label5" runat="server" Text='<%# Bind("Url") %>'></asp:Label> 27 </ItemTemplate> 28 </asp:TemplateField> 29 <asp:TemplateField HeaderText="Logo" SortExpression="Logo"> 30 <EditItemTemplate> 31 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Logo") %>' Width="100px"></asp:TextBox> 32 <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/HelperScripts/ftb.imagegallery.aspx" 33 Target="_blank">上传Logo</asp:HyperLink> 34 </EditItemTemplate> 35 <ItemTemplate> 36 <asp:Label ID="Label1" runat="server" Text='<%# Bind("Logo") %>'></asp:Label> 37 </ItemTemplate> 38 </asp:TemplateField> 39 <asp:TemplateField HeaderText="Ord" SortExpression="Ord"> 40 <EditItemTemplate> 41 <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Ord") %>' Width="20px"></asp:TextBox> 42 </EditItemTemplate> 43 <ItemTemplate> 44 <asp:Label ID="Label3" runat="server" Text='<%# Bind("Ord") %>'></asp:Label> 45 </ItemTemplate> 46 </asp:TemplateField> 47 <asp:TemplateField HeaderText="Info" SortExpression="Info"> 48 <EditItemTemplate> 49 <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Info") %>' TextMode="MultiLine" 50 Width="100px"></asp:TextBox> 51 </EditItemTemplate> 52 <ItemTemplate> 53 <asp:Label ID="Label4" runat="server" Text='<%# Bind("Info") %>'></asp:Label> 54 </ItemTemplate> 55 </asp:TemplateField> 56 </Columns> 57 <RowStyle BackColor="#E3EAEB" /> 58 <EditRowStyle BackColor="#7C6F57" /> 59 <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /> 60 <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> 61 <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> 62 <AlternatingRowStyle BackColor="White" /> 63 </asp:GridView> 64 <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/dbs.mdb" 65 DeleteCommand="DELETE FROM [FZ_Link] WHERE [Id] = ?" InsertCommand="INSERT INTO [FZ_Link] ([Id], [Name], [Url], [Logo], [Ord], [Info]) VALUES (?, ?, ?, ?, ?, ?)" 66 SelectCommand="SELECT * FROM [FZ_Link] ORDER BY [Ord], [Id] DESC" UpdateCommand="UPDATE [FZ_Link] SET [Name] = ?, [Url] = ?, [Logo] = ?, [Ord] = ?, [Info] = ? WHERE [Id] = ?"> 67 <DeleteParameters> 68 <asp:Parameter Name="Id" Type="Int32" /> 69 </DeleteParameters> 70 <UpdateParameters> 71 <asp:Parameter Name="Name" Type="String" /> 72 <asp:Parameter Name="Url" Type="String" /> 73 <asp:Parameter Name="Logo" Type="String" /> 74 <asp:Parameter Name="Ord" Type="Int32" /> 75 <asp:Parameter Name="Info" Type="String" /> 76 <asp:Parameter Name="Id" Type="Int32" /> 77 </UpdateParameters> 78 <InsertParameters> 79 <asp:Parameter Name="Id" Type="Int32" /> 80 <asp:Parameter Name="Name" Type="String" /> 81 <asp:Parameter Name="Url" Type="String" /> 82 <asp:Parameter Name="Logo" Type="String" /> 83 <asp:Parameter Name="Ord" Type="Int32" /> 84 <asp:Parameter Name="Info" Type="String" /> 85 </InsertParameters> 86 </asp:AccessDataSource> 87</asp:Content> 88 89
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:小范企业管理源码

- 学生管理信息系统+留言板

- 曼迪新闻系统测试版

- 51aspx无刷新仿google波形扭..

- DicuzNT论坛1.0SQLServer版源码

- 仿QQ空间个人站点源码

- 简单友情链接(GridView+SqlD..

- 网上书店系统(北大青鸟内部)源码

- MyShop网络商城源码(mvc开发)

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号