-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaiKhoan.aspx
50 lines (50 loc) · 2.32 KB
/
TaiKhoan.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPages.Master" AutoEventWireup="true" CodeBehind="TaiKhoan.aspx.cs" Inherits="Restaurant003.TaiKhoan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
Tai khoan
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageTitle" runat="server">
Tài khoản
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pagePath" runat="server">
Tài khoản
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="content" runat="server">
<div style="padding: 3px;">
<asp:GridView ID="gridTaiKhoan" runat="server"
AutoGenerateColumns="false"
CssClass="table table-bordered table-hover text-center"
AllowPaging="True"
PageSize="3"
OnPageIndexChanging="gridTaiKhoan_PageIndexChanging"
>
<Columns>
<asp:BoundField DataField="maTk" HeaderText="Mã tài khoản"/>
<asp:BoundField DataField="tenTk" HeaderText="Tên tài khoản" />
<asp:BoundField DataField="mk" HeaderText="Mật khẩu" />
<asp:TemplateField HeaderText="Xóa">
<ItemTemplate>
<asp:Button ID="xoa" Text="Xóa" runat="server"
CommandName="xoa"
CommandArgument='<%# Bind("maTk") %>'
OnCommand="Xoa1_Click"
CssClass="btn btn-danger"
OnClientClick="return confirm('Bạn có chắc xóa không')"
/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sửa">
<ItemTemplate>
<asp:Button ID="suaTk" Text="Sửa" runat="server"
CommandName="sua"
CommandArgument='<%# Bind("matk") %>'
OnCommand="Sua1_Click"
CssClass="btn btn-success"
/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="scriptThemMon" runat="server">
</asp:Content>