protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["company"] != null)
                {
                    ClsAdmin objda = new ClsAdmin();

                    objda.code = Request.QueryString["company"].ToString();
                    ds         = objda.getCompanybyCode();
                    if (ds.Tables[0].Rows.Count == 0)
                    {
                        Response.Redirect("error.html");
                    }
                    else
                    {
                        this.Page.Title      = ds.Tables[0].Rows[0]["companyname"].ToString();
                        litcompanyname.Text  = ds.Tables[0].Rows[0]["companyname"].ToString();
                        litcompanyname2.Text = ds.Tables[0].Rows[0]["companyname"].ToString();
                        ((Literal)this.Master.FindControl("litcompanyname3")).Text = ds.Tables[0].Rows[0]["companyname"].ToString();
                        ((HtmlImage)this.Master.FindControl("imglogo")).Src        = "../images/HCLLP-PALLP-Logo.png";
                        // = "../webfile/" + ds.Tables[0].Rows[0]["logoURL"].ToString();
                        app_hid_company.Value = ds.Tables[0].Rows[0]["nid"].ToString();
                    }
                }
                else
                {
                    string strcompanyid = objlogin.getsubdomain(Request.Url);
                    ds = objlogin.ExecuteString("select * from tblcompany where bstatus=1 and compcode='" + strcompanyid + "'");
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        this.Page.Title      = ds.Tables[0].Rows[0]["companyname"].ToString();
                        litcompanyname.Text  = ds.Tables[0].Rows[0]["companyname"].ToString();
                        litcompanyname2.Text = ds.Tables[0].Rows[0]["companyname"].ToString();
                        ((Literal)this.Master.FindControl("litcompanyname3")).Text = ds.Tables[0].Rows[0]["companyname"].ToString();
                        //((HtmlImage)this.Master.FindControl("imglogo")).Src = "../webfile/" + ds.Tables[0].Rows[0]["logoURL"].ToString();
                        ((HtmlImage)this.Master.FindControl("imglogo")).Src = "../images/HCLLP-PALLP-Logo.png";
                        app_hid_company.Value = ds.Tables[0].Rows[0]["nid"].ToString();
                    }
                    else
                    {
                        Response.Redirect("error.html");
                    }
                }
                fillemp();
            }
        }