ASP.Net Div Hide from C#.net

        private void loadInvestmentByProductAndGroup(int ProductId, int InvestmentGroupID)
        {
            ContentPlaceHolder mpContentPlaceHolder;
            System.Web.UI.HtmlControls.HtmlGenericControl currdiv1, currdiv2;
            mpContentPlaceHolder =
                (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");
            if (mpContentPlaceHolder != null)
            {
                currdiv1 = (System.Web.UI.HtmlControls.HtmlGenericControl)mpContentPlaceHolder.FindControl("DivInvestmentGroup");
                currdiv2 = (System.Web.UI.HtmlControls.HtmlGenericControl)mpContentPlaceHolder.FindControl("InvestmentDetail");
                if (currdiv1 != null)
                {
                    this.LoadInvestmentListByProductAndGroup(ProductId, InvestmentGroupID);
                    //currdiv1.Visible = false;
                    //currdiv2.Visible = true;
                }
            }

        }

 <div id="DivInvestmentGroup" runat="server">
                                    <h3>Investment Menu Options</h3>
                                    <uc3:InvestmentGroupList runat="server" ID="InvestmentGroupList1" />
                                </div>
                                <div id="InvestmentDetail" runat="server">
                                    <h3>Investment Menu</h3>
                                    <p class="red-subline">Redhawk F-Squared Core List <span>This list of funds is for the F-Squared Fund Line up.</span></p>
                                    <uc2:InvestmentList runat="server" ID="InvestmentList" />
                                </div>

Comments

Popular posts from this blog

Travel RESUME CV

PTE