protected void Button1_Click(object sender, EventArgs e)
    {
        objBEL      = new LoginBEL();
        objDAL      = new LoginDAL();
        objBEL.user = txtuser.Text;
        objBEL.pass = txtpass.Text;
        string type = objDAL.CheckUser(objBEL);

        Session["user"]     = txtuser.Text;
        Session["usertype"] = type;
        Session["UserID"]   = objBEL.uid;
        Session["ClientID"] = objBEL.cname;
        Session["Client"]   = objBEL.cid;

        if (type != "Error")
        {
            Response.Redirect(Session["usertype"] + "Home.aspx");
        }
        else
        {
            ClsCommon.setI();
            Response.Redirect("Login.aspx");
        }
    }