protected void Page_Load(object sender, EventArgs e)
        {
            category = Request.QueryString["cat"];
            subcategory = Request.QueryString["subcat"];
            indexName = Request.QueryString["name"];
            year = Request.QueryString["year"];
            notification = Request.QueryString["notification"];
            caselawnum1 = Request.QueryString["CLnum1"];
            caselawnum2 = Request.QueryString["CLnum2"];

            #region Customs Tariff

            if (category == "Customs" & subcategory == "Tariff 2012-13")
            {
                Custom_Tariff_IndexnameTableAdapter index = new Custom_Tariff_IndexnameTableAdapter();
                DataTable dtChapterbyIndex = index.Custom_Tariff_ChapterbyIndex(indexName);
                if (dtChapterbyIndex.Rows.Count > 0)
                {
                    ltlIndex.Text = "<table>";
                    string _Subgroup = string.Empty;
                    string _schemes = string.Empty;
                    foreach (DataRow drChapterbyIndex in dtChapterbyIndex.Rows)
                    {
                        string subgroup = drChapterbyIndex["SubGroup"].ToString();
                        string schemes = drChapterbyIndex["Schemes"].ToString();
                        string chaptername = drChapterbyIndex["chaptername"].ToString();
                        string subject = drChapterbyIndex["subjects"].ToString();

                        if (_Subgroup != subgroup)
                        {
                            ltlIndex.Text += "<tr><td align='center' style='background-color:#D9D9D9;font-size:1.4em;'>" + subgroup + "<br/><br/></td></tr>";
                        }
                        if (_schemes != schemes)
                        {
                            ltlIndex.Text += "<tr><td align='left' style='font-size:10.0pt;font-family:Verdana,sans-serif;mso-bidi-font-family:Times;color:#943634';><br/><br/>" + schemes + "<br/><br/></td></tr>";
                        }
                        ltlIndex.Text += "<tr><td style='font-size:10.0pt;font-family:Verdana,sans-serif;mso-bidi-font-family:Times'><a href='shownotifications.aspx?cat=" + category + "&subcat=" + subcategory + "&chaptername=" + chaptername + "'>" + chaptername + "</a><br/>" + subject + "<br/><br/><br/></td></tr>";
                        _Subgroup = subgroup;
                        _schemes = schemes;
                    }
                    ltlIndex.Text += "</table>";
                }
            }
            #endregion

            #region Central Excise Tariff

            else if (category == "Central Excise" & subcategory == "Tariff 2012-13")
            {
                CentralExcise_Tariff_GetAllTableAdapter index = new CentralExcise_Tariff_GetAllTableAdapter();
                DataTable dtChapterbyIndex = index.CE_Tariff_ChapterByIndex(indexName);
                if (dtChapterbyIndex.Rows.Count > 0)
                {
                    ltlIndex.Text = "<table>";
                    string _Subgroup = string.Empty;
                    foreach (DataRow drChapterbyIndex in dtChapterbyIndex.Rows)
                    {
                        string subgroup = drChapterbyIndex["SubGroup"].ToString();
                        string chaptername = drChapterbyIndex["chaptername"].ToString();
                        string subject = drChapterbyIndex["subjects"].ToString();

                        if (_Subgroup != subgroup)
                        {
                            ltlIndex.Text += "<tr><td align='center' style='background-color:#D9D9D9;font-size:1.4em;'>" + subgroup + "<br/><br/></td></tr>";
                        }

                        ltlIndex.Text += "<tr><td style='font-size:10.0pt;font-family:Verdana,sans-serif;mso-bidi-font-family:Times'><a href='shownotifications.aspx?cat=" + category + "&subcat=" + subcategory + "&chaptername=" + chaptername + "'>" + chaptername + "</a><br/>" + subject + "<br/><br/><br/></td></tr>";
                        _Subgroup = subgroup;

                    }
                    ltlIndex.Text += "</table>";
                }
            }

            #endregion

            #region Circulars/Instructions
            else if (subcategory == "Circulars/Instructions")
            {
                if (indexName == "Circulars")
                {
                    gvindexcircularvalues();
                }
                else if (indexName == "Instructions")
                {
                    gvindexinstructionvalues();
                }
            }
            #endregion

            #region CECnotifications
            else if (subcategory == "Notifications" & (category == "Customs" || category == "Central Excise"))
            {
                CECNotifications();
            }
            #endregion

            #region STNotifications
            else if (subcategory == "Notifications" && category == "Service Tax")
            {
                STNotifications();
            }
            #endregion

            #region Caselaws

            else if (subcategory == "Case Laws" || subcategory == "Case")
            {

                lblCL.Text = category+"&nbsp;Case Laws";

                ltlCL.Text += "<table class='citation'><tr><th align='center'>Citation of Year&nbsp;" + year + "</td></tr><tr><td align='center'>";
                ltlCL.Text += caselawnum2 + "-" + caselawnum1 ;
                ltlCL.Text += "</td></tr></table><br/><br/>";

                GetAllCaseLawsTableAdapter getall = new GetAllCaseLawsTableAdapter();
                DataTable dtgetall = getall.GetCitationNum(category, Convert.ToInt32(year), Convert.ToInt32(caselawnum1),Convert.ToInt32(caselawnum2));

                if (dtgetall.Rows.Count > 0)
                {
                    ltlCLheadnotes.Text = string.Empty;
                    foreach (DataRow drcitation in dtgetall.Rows)
                    {
                        string TGOLcitationnum = drcitation["TGOLCitation"].ToString(), APPELLANTParty = drcitation["APPELLANTParty"].ToString(), RESPONDENTParty = drcitation["RESPONDENTParty"].ToString();
                        string HeadNotes = drcitation["HeadNotes"].ToString(), DateofDecision =((System.DateTime)drcitation["DateofDecision"]).ToString("dd-MMMM-yyyy");

                        ltlCLheadnotes.Text += "<table class='citation citCon'>";
                        ltlCLheadnotes.Text += "<tr><td align='center'><a href=shownotifications.aspx?citation=" + TGOLcitationnum + "&cat=" + category + "&subcat=" + subcategory+">" + TGOLcitationnum + "</a></td></tr>";
                        ltlCLheadnotes.Text += "<tr><td align='center'>" + APPELLANTParty + " <span>Vs.</span> " + RESPONDENTParty + "<br/>(Dated:&nbsp;" + DateofDecision + ")</td></tr>";
                        ltlCLheadnotes.Text += "<tr><td style='text-align:justify;font-weight:normal'>" + HeadNotes + "</td></tr></table><br/>";
                    }
                }

            }

            #endregion

            else
            {
                Bindgvindex(subcategory, indexName);
            }
        }