forked from akshayBhardwaj23/About.Me
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.aspx.cs
More file actions
30 lines (27 loc) · 788 Bytes
/
Copy pathindex.aspx.cs
File metadata and controls
30 lines (27 loc) · 788 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
nsabt.clsreg obj = new nsabt.clsreg();
nsabt.clsregprp objprp = new nsabt.clsregprp();
objprp.regeml = txteml.Text;
objprp.regpwd = txtpwd.Text;
Int32 a = obj.logincheck(objprp);
if (a == -1)
Label1.Text = "Email Password Incorrect";
else
{
Session["cod"] = a;
Response.Redirect("user/frmprf.aspx");
}
}
}