private void setActiveUrl()
    {
        string pagename = Request.Url.Segments[Request.Url.Segments.Length - 1].ToLower();

        if (pagename == "booktype.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Book Type ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Book Type ";
                }
            }
            Group              = "BookType";
            lblkey.Text        = "BookType Code :";
            lblvalue.Text      = "BookType Name :";
            lblBT_BMID.Visible = true;
            lblBT_BMID.Text    = "Book Kind";
            DDLBMID.Visible    = true;
            DDLBMID.DataSource = Masterofmaster.GetBookKind("adminBKM");
            DDLBMID.DataBind();
            DDLBMID.Items.Insert(0, new ListItem("--Select Book Kind--", "0"));
        }
        else if (pagename == "bookgroup.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Book Group ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Book Group ";
                }
            }
            Group         = "BookGroup";
            lblkey.Text   = "BookGroup Code :";
            lblvalue.Text = "BookGroup Name :";
        }
        else if (pagename == "department.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Department ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Department ";
                }
            }
            Group         = "Department";
            lblkey.Text   = "Department Code :";
            lblvalue.Text = "Department Name :";
        }
        else if (pagename == "family.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Family ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Family ";
                }
            }
            Group         = "Family";
            lblkey.Text   = "Family Code :";
            lblvalue.Text = "Family Name :";
        }
        else if (pagename == "bookset.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Bookset ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Bookset ";
                }
            }
            Group         = "Bookset";
            lblkey.Text   = "BookSet Code :";
            lblvalue.Text = "BookSet Name :";
        }
        else if (pagename == "qualification.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Qualification ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Qualification ";
                }
            }
            Group         = "Qualification";
            lblkey.Text   = "Qualification Code :";
            lblvalue.Text = "Qualification Name :";
        }
        else if (pagename == "medium.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Medium ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Medium ";
                }
            }
            Group         = "Medium";
            lblkey.Text   = "Medium Code";
            lblvalue.Text = "Medium Name";
        }
        else if (pagename == "standard.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Standard ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Standard ";
                }
            }
            Group         = "Standard";
            lblkey.Text   = "Standard Code";
            lblvalue.Text = "Standard Name";
        }
        else if (pagename == "transport.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Transport ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Transport ";
                }
            }
            Group         = "Transport";
            lblkey.Text   = "Transport Code";
            lblvalue.Text = "Transport Name";
        }
        else if (pagename == "narration.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Narration ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Narration ";
                }
            }
            pageName.InnerHtml = "Narration";
            Group         = "Narration";
            lblkey.Text   = "Narration Code";
            lblvalue.Text = "Narration Name";
        }
        else if (pagename == "designation.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Designation ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Designation ";
                }
            }
            Group         = "Designation";
            lblkey.Text   = "Designation Code";
            lblvalue.Text = "Designation Name";
        }
        else if (pagename == "customertype.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Customer Type ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Customer Type ";
                }
            }
            Group         = "CUSTOMERTYPE";
            lblkey.Text   = "Customer Type Code";
            lblvalue.Text = "Customer Type Name";
        }
        else if (pagename == "customerrating.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Customer Rating";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Customer Rating";
                }
            }
            Group         = "CustRating";
            lblkey.Text   = "Customer Rating Code";
            lblvalue.Text = "Customer Rating";
        }
        else if (pagename == "expensehead.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD ExpenseHead";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit ExpenseHead";
                }
            }
            Group         = "ExpenseHead";
            lblkey.Text   = "ExpenseHead Code";
            lblvalue.Text = "ExpenseHead Name";
        }
        else if (pagename == "board.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Board ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Board ";
                }
            }
            Group         = "Board";
            lblkey.Text   = "Board Code";
            lblvalue.Text = "Board Name";
        }
        else if (pagename == "scheme.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Scheme ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Scheme ";
                }
            }
            Group         = "Scheme";
            lblkey.Text   = "Scheme Code";
            lblvalue.Text = "Scheme Name";

            chExtra.Visible        = true;
            chExtra.DataSource     = Masterofmaster.Get_MasterOfMaster_ByGroup("Product");
            chExtra.DataTextField  = "value";
            chExtra.DataValueField = "AutoId";
            chExtra.DataBind();

            lblExtra.Text    = " Products ";
            lblExtra.Visible = true;
        }

        else if (pagename == "productmaster.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Product ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Product ";
                }
            }
            Group         = "Product";
            lblkey.Text   = "Product Code :";
            lblvalue.Text = "Product Name :";
        }
        else if (pagename == "bookkind.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD Book Kind ";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Book Kind ";
                }
            }
            Group         = "BookKind";
            lblkey.Text   = "Book Kind Code :";
            lblvalue.Text = "Book Kind Name :";
        }

        else if (pagename == "courier_company_master.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "Add Courier Company";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit Courier Company";
                }
            }
            Group         = "CourierCompany";
            lblkey.Text   = "Courier Company Code :";
            lblvalue.Text = "Courier Company Name :";
        }
        else if (pagename == "sbu.aspx")
        {
            if (Request.QueryString["a"] != null)
            {
                if (Request.QueryString["a"] == "a")
                {
                    pageName.InnerHtml = "ADD SBU";
                }
                else
                if (Request.QueryString["a"] == "v")
                {
                    pageName.InnerHtml = "View / Edit SBU";
                }
            }
            Group         = "SBU";
            lblkey.Text   = "SBU Code :";
            lblvalue.Text = "SBU Name :";
        }
        else
        {
        }
        lblCoder.Text = Group;
    }