Web/Admin/ShipTypeAdmin.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipTypeAdmin.aspx.cs" Inherits="MrZeng.Web.Admin.ShipTypeAdmin" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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 style="margin:auto; text-align:center; font-size:12px;">
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server">
         <div style="width:60%; padding-top:10px; padding-bottom:10px; text-align:left;">
              <asp:Button ID="BtnAddType" runat="server" Text="增加类型" Width="150px" 
                  Height="25px" onclick="BtnAddType_Click" />
         </div> 
         <div style="width:60%; padding-top:10px; padding-bottom:10px;">
             <asp:GridView ID="gvShipType" runat="server" AutoGenerateColumns="False"  
                 Font-Size="12px" DataKeyNames="ID" Width="100%" 
                 onrowcommand="gvShipType_RowCommand" >
                 <RowStyle HorizontalAlign="Center" />
                 <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" />
                        <asp:BoundField DataField="ShipName" HeaderText="类型" />
                        <asp:BoundField DataField="ShipFee" HeaderText="费用" />
                        <asp:TemplateField HeaderText="常规操作">
                        <ItemTemplate>
                                <asp:ImageButton ID="ImageActivate" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="updates" ImageUrl="Images/Update.jpg" Width="50px"/>
                                <asp:ImageButton ID="ImageBtnDelete" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="deletes" ImageUrl="Images/Delete.jpg" Width="50px" OnClientClick="return confirm('确定要删除吗?')"/>
                        </ItemTemplate>
                        </asp:TemplateField>
                 </Columns>
             </asp:GridView>
         </div>
         <div style="width:100%;">
             <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" FirstPageText="首页" 
                        HorizontalAlign="Center" LastPageText="尾页" NextPageText="下一页" 
                        PrevPageText="上一页" onpagechanged="AspNetPager1_PageChanged" PageIndexOutOfRangeErrorMessage="没有您要的数据" 
                        ShowBoxThreshold="6" ShowCustomInfoSection="Left" >
              </webdiyer:AspNetPager>
         </div>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Visible="false" >
        <div style="width:500px; padding-top:100px; padding-bottom:100px; text-align:left;">
              <div style="width:100%;">
                  <div style="width:50%; float:left; display:inline;">
                       类型:
                      <asp:Label ID="ID" runat="server" Text="Label" Visible="false" ></asp:Label>
                      <asp:TextBox ID="ShipType" runat="server"></asp:TextBox>
                  </div>
                  <div style="width:50%; float:left; display:inline;">
                       费用:
                      <asp:TextBox ID="ShipFee" runat="server"></asp:TextBox>
                  </div> 
              </div>
              <div style="width:100%; padding-top:10px; text-align:center;">
                   <asp:ImageButton ID="ImageBtnOk" runat="server" 
                       ImageUrl="~/Admin/Images/OK.jpg" onclick="ImageBtnOk_Click" />
                   &nbsp;&nbsp;
后面还有 28 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。