-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPublication.aspx
106 lines (104 loc) · 4.43 KB
/
Publication.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
100
101
102
103
104
105
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Publication.aspx.cs" Inherits="Publication" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.style1
{
width: 361px;
}
.style2
{
width: 691px;
}
.style3
{
width: 291px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="tbl">
<tr>
<td class="tblhead">
ADD NEW PUBLICATION</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<table align="center" class="style1">
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td class="lbl">
Publication Name :
</td>
<td>
<asp:TextBox ID="txtpub" runat="server" CssClass="txt"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtpub" ErrorMessage="??" ForeColor="Red"
SetFocusOnError="True"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnadd" runat="server" CssClass="btn" onclick="btnadd_Click"
Text="ADD Publication" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="lblmsg" runat="server" CssClass="lbl"></asp:Label>
</td>
</tr>
</table>
<br />
<table class="style2">
<tr>
<td class="style3">
</td>
<td>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" CellPadding="2"
DataKeyNames="pid" ForeColor="Black" GridLines="None"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"
onrowupdating="GridView1_RowUpdating" BackColor="#eaeaea"
BorderColor="#d9d9d9" BorderWidth="1px">
<AlternatingRowStyle BackColor="lightgrey" />
<Columns>
<asp:CommandField CausesValidation="false" ShowEditButton="true" />
<asp:BoundField DataField="Publication" HeaderText="Publication" />
</Columns>
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="lightgray" Font-Bold="True" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
</asp:GridView>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>