DotNet
Ads
DotNet For Authentication – Put in Master myCon.Open(); cmd = new SqlCommand("select rol,use_id,pas_wor from login_tab where use_id='" + txtuname.Text + "' and pas_wor='" + txtpwd.Text + "'", myCon); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { Session["uname"] = dr.GetValue(1).ToString(); Session["role"] = dr.GetValue(0).ToString(); } myCon.Close(); try { string role = Session["role"].ToString(); switch (role) { case "~u": cmd = new SqlCommand("select stu_nam from student_master… More information...
| User: | Jayaramchandran Manickam |
|---|---|
| Page: | saicodes.webnode.com (?) |
Ads
Build your Free Website!
- 100% free
- In only 5 min
- Your own domain
- No Ads
- No installation
- No technical skills

