-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.aspx
121 lines (114 loc) · 5.35 KB
/
student.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
<%@ Page Title="" Language="C#" MasterPageFile="~/hodpanel.Master" AutoEventWireup="true" CodeBehind="student.aspx.cs" Inherits="Internship.student" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.auto-style3 {
margin-left: 145px;
}
.auto-style4 {
width: 140px;
height: 42px;
margin-left: 225px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="border-style: solid; border-width: medium">
<div style="color: #FF0000; font-size: 22px; text-align: center">
<br />
Student Ragistertion
<br />
<br />
</div>
<div style="background-color: #FEFDC0; border: 5px solid #ddd; width: 50%; margin: auto; padding: 20px 20px 10%; box-sizing: border-box; text-align: center;">
<br />
<br />
Student ID :
<asp:TextBox ID="txtid" runat="server"></asp:TextBox>
<br />
<br />
Name :
<asp:TextBox ID="txtname" runat="server"></asp:TextBox>
<br />
<br />
Branch :
<asp:TextBox ID="txtbranch" runat="server"></asp:TextBox>
<br />
<br />
Section :
<asp:DropDownList ID="ddsection" runat="server">
<asp:ListItem>A</asp:ListItem>
<asp:ListItem>B</asp:ListItem>
<asp:ListItem>C</asp:ListItem>
<asp:ListItem>D</asp:ListItem>
</asp:DropDownList>
<br />
<br />
Mobile No :
<asp:TextBox ID="txtmob" runat="server"></asp:TextBox>
<br />
<br />
Session :
<asp:TextBox ID="txtsession" runat="server" Enabled="False">2022-23</asp:TextBox>
<br />
<br />
Password :
<asp:TextBox ID="txtpass" runat="server"></asp:TextBox>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="Show" OnClick="Button2_Click" style="height: 26px" />
</div>
<br />
<br />
<asp:GridView ID="GridView1" runat="server" CssClass="auto-style4" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical">
<AlternatingRowStyle BackColor="#CCCCCC" />
<Columns>
<asp:TemplateField HeaderText="Student ID">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text ='<%# Eval("studentid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:TextBox ID="TextBox6" runat="server" Text ='<%# Eval("name") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Branch">
<ItemTemplate>
<asp:TextBox ID="TextBox7" runat="server" Text ='<%# Eval("branch") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Section">
<ItemTemplate>
<asp:TextBox ID="TextBox8" runat="server" Text ='<%# Eval("section") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Mobile">
<ItemTemplate>
<asp:TextBox ID="TextBox9" runat="server" Text ='<%# Eval("mobile") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Opertion ">
<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="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>
<br />
</div>
</asp:Content>