-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.aspx.cs
More file actions
32 lines (28 loc) · 848 Bytes
/
index.aspx.cs
File metadata and controls
32 lines (28 loc) · 848 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace EmpSalaryCalc
{
public partial class frmLogin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnLogin_Click(object sender, EventArgs e)
{
String Email = txtEmail.Text;
String Password = txtPassword.Text;
if(Email=="dpkbhatta2051@gmail.com" && Password=="kaji")
{
Response.Redirect("frmHome.aspx");
}
else
{
Response.Write("<script language='javascript'> alert('E-Mail or Password donot Match')</script>");
}
}
}
}