-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpdateAuthor.aspx
100 lines (96 loc) · 4.69 KB
/
UpdateAuthor.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UpdateAuthor.aspx.cs" Inherits="UpdateArtistForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style1 {
width: 133px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="w-100">
<tr>
<td>search
<asp:TextBox ID="tbxSearch" runat="server"></asp:TextBox>
<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<asp:GridView ID="gvArtist" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-nonfluid .table-striped .table-condensed table-responsive" AutoGenerateColumns="False" OnSelectedIndexChanged="gvArtist_SelectedIndexChanged" AllowPaging="True" OnPageIndexChanging="gvArtist_PageIndexChanging" PageSize="3" OnRowDeleting="gvArtist_RowDeleting">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" />
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Dob" DataFormatString="{0:yyyy-MM-dd}" HeaderText="Date of Birth" />
<asp:CommandField HeaderText="Select" ShowSelectButton="True" />
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" OnClientClick="return confirm('Are you sure?')">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<SortedAscendingCellStyle BackColor="#FDF5AC" />
<SortedAscendingHeaderStyle BackColor="#4D0000" />
<SortedDescendingCellStyle BackColor="#FCF6C0" />
<SortedDescendingHeaderStyle BackColor="#820000" />
</asp:GridView>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table class="w-100">
<tr>
<td class="auto-style1">Id</td>
<td>
<asp:TextBox ID="tbxId" runat="server" required=""></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style1">Name</td>
<td>
<asp:TextBox ID="tbxName" runat="server" required=""></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style1">Date of Birth</td>
<td>
<asp:TextBox ID="tbxDateOfBirth" runat="server" required="" type="date"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style1">Profile</td>
<td>
<asp:TextBox ID="tbxProfile" runat="server" Height="57px" TextMode="MultiLine" Width="275px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style1"> </td>
<td>
<asp:Button ID="btnUpdate" runat="server" OnClick="btnAdd_Click" Text="Update" />
</td>
</tr>
<tr>
<td class="auto-style1"> </td>
<td>
<asp:Label ID="lblOutput" runat="server"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>