public void setURLs()
    {
        this.btnIntestmentDetails.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=1&ops=load";
        this.btnPersonalInfo.PostBackUrl      = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=2&ops=load";
        this.btnJointInfo.PostBackUrl         = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=3&ops=load";
        this.btnCoporateInfo.PostBackUrl      = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=4&ops=load";
        this.btnInitiatorsInfo.PostBackUrl    = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=5&ops=load";
        this.btnDirectors.PostBackUrl         = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=6&ops=load";
        this.btnBeneficiaries.PostBackUrl     = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=7&ops=load";
        this.btnnok.PostBackUrl            = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=8&ops=load";
        this.btnConPerson.PostBackUrl      = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=9&ops=load";
        this.btnbankers.PostBackUrl        = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=10&ops=load";
        this.btnsupportingdocs.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=11&ops=load";
        this.btnAdvise.PostBackUrl         = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=12&ops=load";

        InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
        int type = Convert.ToInt32(InvApp.GetInvestmentType(MySessionManager.InvAppID));

        if (type == 1)
        {
            this.btnJointInfo.Visible      = false;
            this.btnCoporateInfo.Visible   = false;
            this.btnDirectors.Visible      = false;
            this.btnBeneficiaries.Visible  = false;
            this.btnInitiatorsInfo.Visible = false;
        }
        else if (type == 2)
        {
            this.btnPersonalInfo.Visible   = false;
            this.btnDirectors.Visible      = false;
            this.btnBeneficiaries.Visible  = false;
            this.btnCoporateInfo.Visible   = false;
            this.btnInitiatorsInfo.Visible = false;
        }
        else if (type == 3)
        {
            this.btnPersonalInfo.Visible  = false;
            this.btnBeneficiaries.Visible = false;
            this.btnJointInfo.Visible     = false;
            btnInitiatorsInfo.Visible     = false;
            this.btnnok.Visible           = false;
        }
        else if (type == 4)
        {
            this.btnPersonalInfo.Visible = false;
            this.btnCoporateInfo.Visible = false;
            this.btnJointInfo.Visible    = false;
            this.btnDirectors.Visible    = false;
        }
    }
 public void loadTab(int id, string ops)
 {
     try
     {
         InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
         int InvType = Convert.ToInt32(InvApp.GetInvestmentType(MySessionManager.InvAppID));
         if (InvType == 1)
         {
             for (int j = 0; j < indie.Length; j++)
             {
                 if (indie[j] == id)
                 {
                     if (ops == "Next")
                     {
                         int m = j + 1;
                         setTab(indie[m]);
                         MySessionManager.CurrentTab = indie[m].ToString();
                     }
                     else if (ops == "Previous")
                     {
                         if (j > 0)
                         {
                             int m = j - 1;
                             setTab(m);
                             MySessionManager.CurrentTab = indie[m].ToString();
                         }
                     }
                 }
             }
         }
         else if (InvType == 2)
         {
             for (int j = 0; j < joint.Length; j++)
             {
                 if (joint[j] == id)
                 {
                     if (ops == "Next")
                     {
                         int m = j + 1;
                         setTab(joint[m]);
                         MySessionManager.CurrentTab = joint[m].ToString();
                     }
                     else if (ops == "Previous")
                     {
                         if (j > 0)
                         {
                             int m = j - 1;
                             setTab(joint[m]);
                             MySessionManager.CurrentTab = joint[m].ToString();
                         }
                     }
                 }
             }
         }
         else if (InvType == 3)
         {
             for (int j = 0; j < insti.Length; j++)
             {
                 if (insti[j] == id)
                 {
                     if (ops == "Next")
                     {
                         int m = j + 1;
                         setTab(insti[m]);
                         MySessionManager.CurrentTab = insti[m].ToString();
                     }
                     else if (ops == "Previous")
                     {
                         if (j > 0)
                         {
                             int m = j - 1;
                             setTab(insti[m]);
                             MySessionManager.CurrentTab = insti[m].ToString();
                         }
                     }
                 }
             }
         }
         else if (InvType == 4)
         {
             for (int j = 0; j < intrust.Length; j++)
             {
                 if (intrust[j] == id)
                 {
                     if (ops == "Next")
                     {
                         int m = j + 1;
                         setTab(intrust[m]);
                         MySessionManager.CurrentTab = intrust[m].ToString();
                     }
                     else if (ops == "Previous")
                     {
                         if (j > 0)
                         {
                             int m = j - 1;
                             setTab(intrust[m]);
                             MySessionManager.CurrentTab = intrust[m].ToString();
                         }
                     }
                 }
             }
         }
     }
     catch (Exception ex) { }
 }
    public void loadTab(int id, string ops)
    {
        try
        {
            InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
             int InvType = Convert.ToInt32(InvApp.GetInvestmentType(MySessionManager.InvAppID));
            if (InvType == 1)
            {
                for (int j = 0; j < indie.Length; j++)
                {
                    if (indie[j] == id)
                    {
                        if (ops == "Next")
                        {
                            int m = j + 1;
                            setTab(indie[m]);
                            MySessionManager.CurrentTab = indie[m].ToString();
                        }
                        else if (ops == "Previous")
                        {
                            if (j > 0)
                            {
                                int m = j - 1;
                                setTab(m);
                                MySessionManager.CurrentTab = indie[m].ToString();
                            }
                        }
                    }
                }

            }
            else if (InvType == 2 )
            {
                for (int j = 0; j < joint.Length; j++)
                {

                    if (joint[j] == id)
                    {
                        if (ops == "Next")
                        {
                            int m = j + 1;
                            setTab(joint[m]);
                            MySessionManager.CurrentTab = joint[m].ToString();
                        }
                        else if (ops == "Previous")
                        {
                            if (j > 0)
                            {
                                int m = j - 1;
                                setTab(joint[m]);
                                MySessionManager.CurrentTab = joint[m].ToString();
                            }
                        }
                    }
                }
            }
            else if( InvType == 3)
            {
                for (int j = 0; j < insti.Length; j++)
                {

                    if (insti[j] == id)
                    {
                        if (ops == "Next")
                        {
                            int m = j + 1;
                            setTab(insti[m]);
                            MySessionManager.CurrentTab = insti[m].ToString();
                        }
                        else if (ops == "Previous")
                        {
                            if (j > 0)
                            {
                                int m = j - 1;
                                setTab(insti[m]);
                                MySessionManager.CurrentTab = insti[m].ToString();
                            }
                        }
                    }
                }
            }
            else if (InvType == 4)
            {
                for (int j = 0; j < intrust.Length; j++)
                {
                    if (intrust[j] == id)
                    {
                        if (ops == "Next")
                        {
                            int m = j + 1;
                            setTab(intrust[m]);
                            MySessionManager.CurrentTab = intrust[m].ToString();
                        }
                        else if (ops == "Previous")
                        {
                            if (j > 0)
                            {
                                int m = j - 1;
                                setTab(intrust[m]);
                                MySessionManager.CurrentTab = intrust[m].ToString();
                            }
                        }
                    }
                }
            }
        }
        catch (Exception ex) { }
    }
    public void setURLs()
    {

        this.btnIntestmentDetails.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=1&ops=load";
        this.btnPersonalInfo.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=2&ops=load";
        this.btnJointInfo.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=3&ops=load";
        this.btnCoporateInfo.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=4&ops=load";
        this.btnInitiatorsInfo.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=5&ops=load";
        this.btnDirectors.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=6&ops=load";
        this.btnBeneficiaries.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=7&ops=load";
        this.btnnok.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=8&ops=load";
        this.btnConPerson.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=9&ops=load";
        this.btnbankers.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=10&ops=load";
        this.btnsupportingdocs.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=11&ops=load";
        this.btnAdvise.PostBackUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&tab=12&ops=load";

        InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
        int type =Convert.ToInt32(InvApp.GetInvestmentType(MySessionManager.InvAppID));
        if(type==1)
        {
            this.btnJointInfo.Visible = false;
            this.btnCoporateInfo.Visible = false;
            this.btnDirectors.Visible = false;
            this.btnBeneficiaries.Visible = false;
            this.btnInitiatorsInfo.Visible = false;
        }
        else if (type == 2) 
        {
            this.btnPersonalInfo.Visible = false;
            this.btnDirectors.Visible = false;
            this.btnBeneficiaries.Visible = false;
            this.btnCoporateInfo.Visible = false;
            this.btnInitiatorsInfo.Visible = false;
        }
        else if (type == 3)
        {
            this.btnPersonalInfo.Visible = false;
            this.btnBeneficiaries.Visible = false;
            this.btnJointInfo.Visible = false;
            btnInitiatorsInfo.Visible = false;
            this.btnnok.Visible = false;        
        }
        else if (type == 4)
        {
            this.btnPersonalInfo.Visible = false;
            this.btnCoporateInfo.Visible = false;
            this.btnJointInfo.Visible = false;
            this.btnDirectors.Visible = false;
        }


    }