forked from srikanthpragada/webdemo_10_july_2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeefinder.aspx.cs
44 lines (33 loc) · 1015 Bytes
/
feefinder.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebDemo
{
public partial class feefinder : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnFind_Click(object sender, EventArgs e)
{
int fee = Int32.Parse(ddlCourse.SelectedItem.Value);
if (chkOldStudent.Checked && rbClassroom.Checked)
fee = fee * 90 / 100;
if (chkMaterial.Checked)
fee += 300;
lblFee.Text = "Course Fee : " + fee;
}
protected void rbOnline_CheckedChanged(object sender, EventArgs e)
{
chkOldStudent.Checked = false;
chkOldStudent.Enabled = false;
}
protected void rbClassroom_CheckedChanged(object sender, EventArgs e)
{
chkOldStudent.Enabled = true;
}
}
}