TechEthical CEHP

Current Path : G:/PleskVhosts/megamind.net.in/careercentre360.com/admin/
Upload File :
Current File : G:/PleskVhosts/megamind.net.in/careercentre360.com/admin/admin.Master.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;

namespace bathuasoft.admin
{
    public partial class admin : System.Web.UI.MasterPage
    {
        public DataTable dt = new DataTable();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Loginxtr"].ToString() != "1254lkjhhfdgftfrdgf")
            {
                Response.Redirect("login.aspx");
            }

            if (Session["txt_loginuser"] != null || Session["txt_loginpass"] != null)
            {

                SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conn_ConnectionString"].ConnectionString.ToString());

                string qry = "select * from [dbo].[user_login] where [email]='" + Session["txt_loginuser"] + "' or [password]='" + Session["txt_loginpass"] + "' ";
                SqlDataAdapter sda = new SqlDataAdapter(qry, conn);

        int a = sda.Fill(dt);

                if (a > 0)
                {
 

                }
                 if (Session["txt_loginuser"] == null || Session["txt_loginpass"] == null)
                {

                    Response.Redirect("~/Index.aspx");


                }


                if (IsPostBack)
                {
                    

                }

            }
        }




        protected void HyperLink1_click(object sender, EventArgs e)
        {
            Session.Clear();
            


                Response.Redirect("~/Index.aspx");


        }
    }
}

TechEthical Mini WebShell Version 1.0, Coded By The_M@T3