-
Notifications
You must be signed in to change notification settings - Fork 5
/
feespage.aspx.cs
96 lines (91 loc) · 2.63 KB
/
feespage.aspx.cs
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
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using inst_mgmt;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Visible = false;
Label2.Visible = false;
Label3.Visible = false;
Label4.Visible = false;
Label5.Visible = false;
Label6.Visible = false;
TextBox6.Visible = false;
TextBox5.Visible = false;
TextBox4.Visible = false;
TextBox3.Visible = false;
TextBox2.Visible = false;
TextBox1.Visible = false;
GridView1.Visible = false;
Button1.Visible = false;
Button2.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
mfee k = new mfee();
k.instalmentno = TextBox1.Text;
k.courseid = TextBox2.Text;
k.paidto = TextBox3.Text;
k.duedate = TextBox4.Text;
k.amount = TextBox5.Text;
k.category = TextBox6.Text;
mfee.insert(k);
mfee.select();
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
}
protected void Button3_Click(object sender, EventArgs e)
{
Label1.Visible = true;
Label2.Visible = true;
Label3.Visible = true;
Label4.Visible = true;
Label5.Visible = true;
Label6.Visible = true;
TextBox6.Visible = true;
TextBox5.Visible = true;
TextBox4.Visible = true;
TextBox3.Visible = true;
TextBox2.Visible = true;
TextBox1.Visible = true;
GridView1.Visible = false;
Button1.Visible = true;
Button2.Visible = true;
}
protected void Button4_Click(object sender, EventArgs e)
{
Label1.Visible = false;
Label2.Visible = false;
Label3.Visible = false;
Label4.Visible = false;
Label5.Visible = false;
Label6.Visible = false;
TextBox6.Visible = false;
TextBox5.Visible = false;
TextBox4.Visible = false;
TextBox3.Visible = false;
TextBox2.Visible = false;
TextBox1.Visible = false;
GridView1.Visible = true;
Button1.Visible = false;
Button2.Visible = false;
}
}