-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfrmLMS.aspx.cs
More file actions
135 lines (111 loc) · 4.24 KB
/
frmLMS.aspx.cs
File metadata and controls
135 lines (111 loc) · 4.24 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ASPCA1DBK
{
public partial class LMS : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
PanelBooksList0.Visible = false;
// PanelBDetails0.Visible = false;
}
}
protected void ddlBooks_SelectedIndexChanged(object sender, EventArgs e)
{
if(ddlBooks.SelectedItem.Text== "Computer Science")
{
PanelBooksList0.Visible = true;
lblBookCate0.Text = "ASP.NET";
BCate0.Text = "ASP.NET";
Bname1.Text = "Beginning With ASP.NET";
BAuthor1.Text = "Deepak Bhatta";
BPrice1.Text = "5000";
BPub3.Text = "B Group Of Technology";
BDate.Text = "2018-August-24";
lblBookCate1.Text = "JAVA";
BCate1.Text = "JAVA";
Bname3.Text = "Black Book - JAVA";
BAuthor3.Text = "Divya Dev Bhatta";
BPrice3.Text = "3500";
BPub7.Text = "AK 47";
BDate2.Text = "2018-August-20";
}
if (ddlBooks.SelectedItem.Text == "Electrical Engg")
{
PanelBooksList0.Visible = true;
lblBookCate0.Text = "FEE";
BCate0.Text = "FEE";
Bname1.Text = "Fundamental of E&E";
BAuthor1.Text = "ABC";
BPrice1.Text = "10000";
BPub3.Text = "S Group";
BDate.Text = "2018-August-10";
lblBookCate1.Text = "Electrical Enginer";
BCate1.Text = "E & E Books";
Bname3.Text = "S Chanda";
BAuthor3.Text = "Divya";
BPrice3.Text = "8500";
BPub7.Text = "Shai Ram";
BDate2.Text = "2018-August-15";
}
}
protected void btnSearch_Click(object sender, EventArgs e)
{
PanelBDetails0.Visible = true;
if ((txtSearch.Text=="ASP.NET")||(txtSearch.Text=="asp.net"))
{
BID.Text = 1+"";
Bname2.Text = "Beginning With ASP.NET";
BAuthor2.Text = "Deepak Bhatta";
BPrice2.Text = "5000";
BPub5.Text = "B Group Of Technology";
BDate6.Text = "2018-August-24";
}
if ((txtSearch.Text == "JAVA") || (txtSearch.Text == "java"))
{
BID.Text = 1 + "";
Bname2.Text = "Beginning With ASP.NET";
BAuthor2.Text = "Deepak Bhatta";
BPrice2.Text = "5000";
BPub5.Text = "B Group Of Technology";
BDate6.Text = "2018-August-24";
}
if ((txtSearch.Text == "FEE") || (txtSearch.Text == "fee"))
{
BID.Text = 1 + "";
Bname2.Text = "Fundamental of E&E";
BAuthor2.Text = "ABC";
BPrice2.Text = "10000";
BPub5.Text = "BS Group";
BDate6.Text = "2018-August-10";
}
if ((txtSearch.Text == "Electrical") || (txtSearch.Text == "electrical"))
{
BID.Text = 1 + "";
Bname2.Text = "Beginning With ASP.NET";
BAuthor2.Text = " Chanda";
BPrice2.Text = "8500";
BPub5.Text = "Shai Ram";
BDate6.Text = "2018-August-15";
}
}
public void btnAdd_Click(object sender, EventArgs e)
{
BID.Text = int.Parse(BID.Text)+1+"";
}
protected void btnBack_Click(object sender, EventArgs e)
{
Response.Redirect("frmHome.aspx");
}
protected void btnExit_Click(object sender, EventArgs e)
{
Response.Redirect("index.aspx");
}
}
}