Пример #1
0
    //Load All Data
    public void LoadAllData()
    {
        objCommon = new clsCommon();
        objCommon.FillRecordPerPage(ref ddlPropertyPreValuePerPage);
        objCommon.FillRecordPerPage(ref ddlSubCategoryPerPage);
        objCommon.FillDropDownList(ddlCategory, "tblCategory ", tblCategory.ColumnNames.AppCategory, tblCategory.ColumnNames.AppCategoryID, "--Select Category--", tblCategory.ColumnNames.AppCategory, appFunctions.Enum_SortOrderBy.Asc);
        objCommon.FillDropDownList(ddlSerachCategory, "tblCategory ", tblCategory.ColumnNames.AppCategory, tblCategory.ColumnNames.AppCategoryID, "--Select Category--", tblCategory.ColumnNames.AppCategory, appFunctions.Enum_SortOrderBy.Asc);

        ddlSerachSubCategory.Items.Add(new ListItem("--Select Sub Category--", "0"));
        objCommon = null;
        LoadPropertyPreValue();
        LoadSubCategory();
    }
Пример #2
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";
            objCommon = new clsCommon();
            objCommon.FillDropDownList(ddlCountry, "tblCountry", tblCountry.ColumnNames.AppCountry, tblCountry.ColumnNames.AppCountryID, "-- Select Country --");
            objCommon = null;

            btnAdd.Visible    = HasAdd;
            btnDelete.Visible = HasDelete;
            dgvGridView.Columns[0].Visible = HasDelete;
            dgvGridView.Columns[1].Visible = HasEdit;
            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);
            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
        }
    }
Пример #3
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            SetReguExpression();

            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }

            objCommon = new clsCommon();
            //objCommon.FillDropDownListWithOutDefaultValue(ddlCourierCompany, "tblCourierCompany", tblCourierCompany.ColumnNames.AppCourierCompany, tblCourierCompany.ColumnNames.AppCourierCompanyID, tblCourierCompany.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, tblCourierCompany.ColumnNames.AppIsActive + "=1");
            objCommon.FillDropDownList(ddlCourierCompany, "tblCourierCompany", tblCourierCompany.ColumnNames.AppCourierCompany, tblCourierCompany.ColumnNames.AppCourierCompanyID, "--Select Courier Company--", tblCourierCompany.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, tblCourierCompany.ColumnNames.AppIsActive + "=1");
            objCommon.FillRecordPerPage(ref ddlPerPage);
            //  objCommon.FillDropDownList(ddlCourierComapny, "tblCourierCompany ", tblCourierCompany.ColumnNames.AppCourierCompany, tblCourierCompany.ColumnNames.AppCourierCompanyID, "--Select Courier Company--", tblCourierCompany.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, tblCourierCompany.ColumnNames.AppIsActive + "=1");
            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
            SetTab();
        }
    }
Пример #4
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!IsPostBack)
     {
         ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
         ViewState["SortColumn"] = "";
         objCommon = new clsCommon();
         ddlStatus.Items.Add(new ListItem("--Select Status--", "0"));
         objCommon.FillDropDownList(ddlStatus, "tblOrderStatus ", tblOrderStatus.ColumnNames.AppOrderStatus, tblOrderStatus.ColumnNames.AppOrderStatusID, "--Select Status--", tblOrderStatus.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, tblCourierCompany.ColumnNames.AppIsActive + "=1");
         objCommon = null;
         //dgvGridView.Columns[0].Visible = HasDelete;
         //dgvGridView.Columns[1].Visible = HasEdit;
         if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
         {
             if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
             {
                 DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                 Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                 Session[appFunctions.Session.ShowMessageType.ToString()] = "";
             }
         }
         objCommon = new clsCommon();
         objCommon.FillRecordPerPage(ref ddlPerPage);
         LoadDataGrid(true, false);
         txtSearch.Focus();
         objCommon = null;
     }
 }
Пример #5
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            //  GetCourierName();

            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);
            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
            SetTab();
        }
    }
Пример #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            objCommon = new clsCommon();
            objCommon.FillDropDownList(ddlstatus, "tblOrderStatus", tblOrderStatus.ColumnNames.AppOrderStatus, tblOrderStatus.ColumnNames.AppOrderStatusID, "-- Select Status --", tblOrderStatus.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc);
            objCommon.FillRecordPerPage(ref ddlPerPage);
            objCommon = null;
            if ((Request.QueryString.Get("ID") != null))
            {
                objEncrypt = new clsEncryption();
                try
                {
                    hdnPKID.Value = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
                }
                catch (Exception ex)
                {
                    // noIdFoundRedirect("Employee.aspx");
                }
                objEncrypt = null;
                SetValuesToControls();
            }
            LoadDataGrid(true, false);
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ViewState["SortOrder"]         = appFunctions.Enum_SortOrderBy.Asc;
         ViewState["SortColumn"]        = "";
         dgvGridView.Columns[0].Visible = HasDelete;
         if (Session[appFunctions.Session.ShowMessage.ToString()] != null)
         {
             if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
             {
                 DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                 Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                 Session[appFunctions.Session.ShowMessageType.ToString()] = "";
             }
         }
         objCommon = new clsCommon();
         objCommon.FillRecordPerPage(ref ddlPerPage);
         if ((Request.QueryString.Get("ID") != null))
         {
             objEncrypt = new clsEncryption();
             try
             {
                 string pid = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
             }
             catch (Exception ex)
             {
             }
         }
         LoadDataGrid(true, false);
         txtSearch.Focus();
         objCommon = null;
     }
 }
 public void LoadAllData()
 {
     objCommon = new clsCommon();
     objCommon.FillRecordPerPage(ref ddlCourierRatePerPage);
     //objCommon.FillDropDownList(ddlCourierCompany, "tblCourierCompany ", tblCourierCompany.ColumnNames.AppCourierCompany, tblCourierCompany.ColumnNames.AppCourierCompanyID, "--Select Courier Company--", tblCourierCompany.ColumnNames.AppCourierCompany, appFunctions.Enum_SortOrderBy.Asc);
     objCommon = null;
     LoadCourierRate();
 }
 public void LoadAllData()
 {
     objCommon = new clsCommon();
     objCommon.FillRecordPerPage(ref ddlSubCategoryPerPage);
     //  objCommon.FillDropDownList(ddlSize, "tblSize ", tblSize.ColumnNames.AppSize, tblSize.ColumnNames.AppSizeID, "--Select Size--", tblSize.ColumnNames.AppSize, appFunctions.Enum_SortOrderBy.Asc);
     objCommon = null;
     loadUnselectedSizeGrid();
     LoadSubCategory();
     LoadSubCategoryData(false, false);
 }
Пример #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Page.Form.Attributes.Add("enctype", "multipart/form-data");

            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerMenu);
            objCommon = null;

            //chkDataBaseSettings.Attributes.Add("onclick", "javascript:checkLink();");

            SetValuesToControl();
        }
    }
Пример #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            hdnProductDetailID.Value = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
            ViewState["SortOrder"]   = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"]  = "";
            //btnAdd.Visible = HasAdd;
            btnDelete.Visible = HasDelete;

            dgvGridView.Columns[0].Visible = HasDelete;
            // dgvGridView.Columns[1].Visible = HasEdit;
            objCommon = new clsCommon();
            objCommon.BindEnumtoDDL(typeof(Enums.Enum_ReviewStatus), ddlStatus, "--Select Status--");

            //   objCommon.FillDropDownList(ddlUserName, "tblRegistration", tblRegistration.ColumnNames.AppFullName, tblRegistration.ColumnNames.AppRegistrationID, "--Select UserName--", tblRegistration.ColumnNames.AppUserStatus + "<>" + Convert.ToInt32(Enums.Enum_UserStatus.Created));
            //  objCommon.FillDropDownList(ddlProfessionalName, "tblProfessional", tblProfessional.ColumnNames.AppProfessionalName, tblProfessional.ColumnNames.AppProfessionalID, "--Select Professional--", tblProfessional.ColumnNames.AppPublishedBy + "<>" + "0");
            objCommon = null;
            if (Session[appFunctions.Session.ShowMessage.ToString()] != null)
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);
            if ((Request.QueryString.Get("ID") != null))
            {
                objEncrypt = new clsEncryption();
                try
                {
                    string pid = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
                    //     ddlProfessionalName.SelectedValue = pid;
                }
                catch (Exception ex)
                {
                    // noIdFoundRedirect("Employee.aspx");
                }
            }
            LoadDataGrid(true, false);
            //txtSearch.Focus();
            objCommon = null;
        }
    }
Пример #12
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            btnAdd.Visible    = HasAdd;
            btnDelete.Visible = HasDelete;
            dgvGridView.Columns[0].Visible = HasDelete;
            dgvGridView.Columns[1].Visible = HasEdit;
            if ((bool)Session[appFunctions.Session.IsSuperAdmin.ToString()])
            {
                dgvGridView.Columns[3].Visible = HasEdit;
            }
            else
            {
                dgvGridView.Columns[3].Visible = false;
            }

            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);

            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
        }
    }
Пример #13
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            ifError = false;
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            btnAdd.Visible    = HasAdd;
            btnDelete.Visible = HasDelete;
            dgvGridView.Columns[0].Visible = HasDelete;
            dgvGridView.Columns[1].Visible = HasEdit;
            dgvGridView.Columns[5].Visible = HasEdit;

            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);
            if ((Request.QueryString.Get("ID") != null))
            {
                objEncrypt = new clsEncryption();
                try
                {
                    hdnPKID.Value = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
                    intSiteMapId  = Convert.ToInt32(hdnPKID.Value);
                }
                catch (Exception ex)
                {
                    // noIdFoundRedirect("Employee.aspx");
                }

                objEncrypt = null;
                if ((Request.QueryString.Get("type") != null))
                {
                    if ((Request.QueryString.Get("type") == "mtype"))
                    {
                        hdnType.Value = "mtype";
                    }
                    else
                    {
                        hdnType.Value = "";
                    }
                }
                else
                {
                    hdnType.Value = "";
                }
            }
            if (intSiteMapId != -1)
            {
                DataTable dt = new DataTable();

                objEncrypt = new clsEncryption();
                dynamic objTempMenuItem = new tblMenuItem();
                if (hdnType.Value == "")
                {
                    dt             = objTempMenuItem.GetSiteMap(intSiteMapId);
                    strSiteMapData = dt.Rows[0][0].ToString();
                    dt             = objTempMenuItem.GetMenuType(intSiteMapId, false);
                }
                else
                {
                    dt = objTempMenuItem.GetMenuType(intSiteMapId, true);
                }

                String[] SplitSiteMapString = strSiteMapData.Split('/');

                strSiteMap = "<a href='MasterMenus.aspx'>Menu Items</a>";

                if (SplitSiteMapString.Length > 1)
                {
                    strSiteMap += " >  <a href=MenuItems.aspx?Id=" + objEncrypt.Encrypt(dt.Rows[0]["appMenuTypeId"].ToString(), appFunctions.strKey) + "&type=mtype>" + dt.Rows[0]["appMenuTypeName"].ToString() + "</a>";
                    //strSiteMap = "<a href='MenuItems.aspx'>Parent Tabs </a>";
                }
                else
                {
                    strSiteMap += " > " + dt.Rows[0]["appMenuTypeName"].ToString();
                }

                for (int i = 0; i <= SplitSiteMapString.Length - 2; i += 1)
                {
                    String[] SplittedItems = SplitSiteMapString.GetValue(i).ToString().Split(',');
                    if (i == SplitSiteMapString.Length - 2)
                    {
                        strSiteMap += " > " + SplittedItems.GetValue(0);
                    }
                    else
                    {
                        strSiteMap += " > <a href='MenuItems.aspx?Id=" + objEncrypt.Encrypt(SplittedItems.GetValue(1).ToString(), appFunctions.strKey) + "'> " + SplittedItems.GetValue(0) + "</a>";
                    }
                }

                litSiteMap.Text = strSiteMap;
            }

            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
        }
    }
Пример #14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //tblUser objUser = new tblUser();

            //dgvGridView.DataSource = objUser.RecentUsers(Session[appFunctions.Session.UserID.ToString()].ToString(), Convert.ToBoolean(Session[appFunctions.Session.IsSuperAdmin.ToString()].ToString()));
            //dgvGridView.DataBind();
            //objUser = null;
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";

            SetSubOrder();

            DataTable objPermissionDT = new DataTable();
            if ((bool)Session[appFunctions.Session.IsSuperAdmin.ToString()])
            {
                tblTab objTab = new tblTab();
                objTab.Query.AddOrderBy(tblTab.ColumnNames.AppDisplayOrder, MyGeneration.dOOdads.WhereParameter.Dir.ASC);
                objTab.Query.AddOrderBy(tblTab.ColumnNames.AppParentID, MyGeneration.dOOdads.WhereParameter.Dir.ASC);
                objTab.Where.AppIsShowOnDashboard.Value = true;
                objTab.Query.Load();
                objPermissionDT = objTab.DefaultView.Table;
            }
            else
            {
                tblPermission objPermission = new tblPermission();
                try
                {
                    objPermissionDT = objPermission.LoadTabsForRole(Convert.ToInt32(Session[appFunctions.Session.RoleID.ToString()].ToString()), true);
                }
                catch
                {
                    Response.Redirect("UserPannel.aspx");
                }
            }

            rptDashBoardLinks.DataSource = objPermissionDT;
            rptDashBoardLinks.DataBind();

            //string dashBoardString = "";
            //foreach (DataRow dr in objPermissionDT.Rows)
            //{
            //    dashBoardString += "<div class='col-md-2 col-sm-3 col-xs-3' align='Center'>";
            //    dashBoardString += "<a href='" + dr["appWebPageName"].ToString() + "'>";
            //    if (dr["appIconPath"].ToString() != "")
            //    {
            //        dashBoardString += "<img src='" + dr["appIconPath"].ToString() + "' height='100px' width='100px'  alt='" + dr["appTabName"] + "'/>";
            //    }
            //    else
            //    {
            //        dashBoardString += "<img src='Images/NoImg.png' height='100px' width='100px'  alt='" + dr["appTabName"] + "'/>";
            //    }

            //    dashBoardString += "<div style='text=align:center;Width:100px;line-height:20Px;height:40Px;'>" + dr["appTabName"].ToString() + "</div>";
            //    dashBoardString += "</a>";

            //    dashBoardString += "</div>";
            //}
            //DashBord.InnerHtml = dashBoardString;
            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlSubOrderPerPage);
            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
        }
    }
Пример #15
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState["SortOrder"]  = appFunctions.Enum_SortOrderBy.Asc;
            ViewState["SortColumn"] = "";


            ifError           = false;
            btnAdd.Visible    = HasAdd;
            btnDelete.Visible = HasDelete;
            dgvGridView.Columns[0].Visible = HasDelete;
            dgvGridView.Columns[1].Visible = HasEdit;
            dgvGridView.Columns[4].Visible = HasEdit;
            dgvGridView.Columns[5].Visible = HasEdit;
            dgvGridView.Columns[6].Visible = HasEdit;
            dgvGridView.Columns[7].Visible = HasEdit;
            dgvGridView.Columns[8].Visible = HasEdit;

            if ((Session[appFunctions.Session.ShowMessage.ToString()] != null))
            {
                if (!string.IsNullOrEmpty(Session[appFunctions.Session.ShowMessage.ToString()].ToString()))
                {
                    DInfo.ShowMessage(Session[appFunctions.Session.ShowMessage.ToString()].ToString(), (Enums.MessageType)Session[appFunctions.Session.ShowMessageType.ToString()]);
                    Session[appFunctions.Session.ShowMessage.ToString()]     = "";
                    Session[appFunctions.Session.ShowMessageType.ToString()] = "";
                }
            }

            objCommon = new clsCommon();
            objCommon.FillRecordPerPage(ref ddlPerPage);
            //  objCommon.FillDropDownList(ddlParents, "tblTab", tblTab.ColumnNames.AppTabName, tblTab.ColumnNames.AppTabID, "--Select Parent--", tblTab.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, "appParentId = 0")

            if ((Request.QueryString.Get("ID") != null))
            {
                objEncrypt            = new clsEncryption();
                hdnCurrentTabID.Value = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
                intSiteMapId          = Convert.ToInt32(hdnCurrentTabID.Value);
            }

            if (intSiteMapId != -1)
            {
                DataTable dt = new DataTable();

                objEncrypt = new clsEncryption();
                dynamic objTempTab = new tblTab();
                dt             = objTempTab.GetSiteMap(intSiteMapId);
                strSiteMapData = dt.Rows[0][0].ToString();

                dt = objTempTab.GetMenuType(intSiteMapId);

                String[] SplitSiteMapString = strSiteMapData.Split('/');
                if (SplitSiteMapString.Length > 1)
                {
                    strSiteMap = "<a href='Tab.aspx'>Parent Tabs </a>";
                }
                else
                {
                    strSiteMap = "Parent Tabs";
                }

                for (int i = SplitSiteMapString.Length - 2; i >= 0; i += -1)
                {
                    String[] SplittedItems = SplitSiteMapString.GetValue(i).ToString().Split(',');

                    //If i = 0 Then
                    //    strSiteMap = "<a href=TabsList.aspx?Id=" + objEncrypt.Encrypt(dt.Rows(0).Item("appTabID"), appFunctions.strKey) + "&type=mtype>" + dt.Rows(0).Item("appTabName") + "</a>"
                    //End If
                    //If i <> SplitSiteMapString.Length - 2 Then
                    //    strSiteMap += " > "
                    //End If
                    if (i == 0)
                    {
                        strSiteMap += " > " + SplittedItems.GetValue(0);
                    }
                    else
                    {
                        strSiteMap += " > <a href='Tab.aspx?Id=" + objEncrypt.Encrypt(SplittedItems.GetValue(1).ToString(), appFunctions.strKey) + "'>" + SplittedItems.GetValue(0) + "</a>";
                    }
                }

                litSiteMap.Text = strSiteMap;
            }
            LoadDataGrid(true, false);
            txtSearch.Focus();
            objCommon = null;
        }
    }