-
Notifications
You must be signed in to change notification settings - Fork 0
/
hodadmin.aspx
136 lines (129 loc) · 5.5 KB
/
hodadmin.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<%@ Page Title="" Language="C#" MasterPageFile="~/adminpanel.Master" AutoEventWireup="true" CodeBehind="hodadmin.aspx.cs" Inherits="Internship.hodadmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.auto-style2 {
margin-left: 101px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="border-style: solid; border-width: medium">
<div style="text-align: center; background-color: #FEFDC0; border: 10px solid #ddd; padding: 10px;">
<p>
<br />
</p>
<div style="border: 1px solid #ddd; padding: 10px;">
<p>
User id :
<asp:TextBox ID="txtid" runat="server"></asp:TextBox>
</p>
<p>
Name of HOD :
<asp:TextBox ID="txtnohod" runat="server"></asp:TextBox>
</p>
<p>
Email id :
<asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
</p>
<p>
Mobile No :
<asp:TextBox ID="txtmobile" runat="server"></asp:TextBox>
</p>
<p>
password :
<asp:TextBox ID="txtpassword" runat="server"></asp:TextBox>
</p>
<p>
Department :
<asp:DropDownList ID="dddept" runat="server">
<asp:ListItem>CSE</asp:ListItem>
<asp:ListItem>IT</asp:ListItem>
<asp:ListItem>CIVIL</asp:ListItem>
<asp:ListItem>ETC</asp:ListItem>
<asp:ListItem>MECH</asp:ListItem>
</asp:DropDownList>
</p>
<p>
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="Show" OnClick="Button2_Click" />
</p>
<p>
</p>
</div>
</div>
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="auto-style2" Width="392px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal">
<Columns>
<asp:TemplateField HeaderText="Sno">
<ItemTemplate>
<%#Container.DataItemIndex+1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ID">
<ItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text ='<%# Eval("uerid") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NAME">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text ='<%# Eval("name") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="EMAIL">
<ItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text ='<%# Eval("email") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="PASSWORD">
<ItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text ='<%# Eval("password") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DEPARTMENT">
<ItemTemplate>
<asp:DropDownList ID="dddept" runat="server" Text ='<%# Eval("department") %>'>
<asp:ListItem>CSE</asp:ListItem>
<asp:ListItem>IT</asp:ListItem>
<asp:ListItem>CIVIL</asp:ListItem>
<asp:ListItem>ETC</asp:ListItem>
<asp:ListItem>MECH</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="BUTTON">
<ItemTemplate>
<asp:Button ID="Button3" runat="server" Text="Update" OnClick="Button3_Click" /> <asp:Button ID="Button4" runat="server" Text="Delete" OnClick="Button4_Click" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCC99" ForeColor="Black" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#4B4B4B" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#242121" />
</asp:GridView>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</div>
</asp:Content>