private void BindMenusList()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();
            DataTable     condos_dt = new DataTable();

            condos_dt = clsobj.GetDreamHouse();
            dt        = clsobj.GetMenuList();
            if (dt.Rows.Count > 0)
            {
                string PageName = dt.Rows[0]["PageName"].ToString();
                StrMenu.Append("<a class='toggleMenu' href='#'></a>");
                StrMenu.Append("<ul class='nav'>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='../Home.aspx' title='Home' >Home</a></li>");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsobj.PageID = Convert.ToInt32(dt.Rows[i]["ID"]);
                    dtSubmenu     = clsobj.GetSubMenuBy_PageID();
                    if (dtSubmenu.Rows.Count > 0)
                    {
                        StrMenu.Append("<li><a href=#>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        StrMenu.Append("<ul>");
                        for (int j = 0; j < dtSubmenu.Rows.Count; j++)
                        {
                            StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dtSubmenu.Rows[j]["id"] + "' title='" + dtSubmenu.Rows[j]["PageName"] + "'>" + dtSubmenu.Rows[j]["PageName"] + "</a> </li>");
                        }
                        StrMenu.Append("</ul>");
                        StrMenu.Append("</li>");
                    }
                    else
                    {
                        StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                    }
                }
                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../MyListings.aspx' title='My Listings'>My Listings</a>");
                StrMenu.Append("</li>");
                StrMenu.Append("<li><a href=#>Pre-Constructions</a>");//</li>
                if (condos_dt.Rows.Count > 0)
                {
                    StrMenu.Append("<ul >");

                    for (int j = 0; j < condos_dt.Rows.Count; j++)
                    {
                        StrMenu.Append("<li><a href='../DreamHouseDetail.aspx?Id=" + condos_dt.Rows[j]["Id"] + "' title=''>" + condos_dt.Rows[j]["Title"] + "</a></li>");
                    }
                    StrMenu.Append("</ul>");
                }

                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../RealEstateNews.aspx' title='Real Estate News'>Real Estate News</a>");
                StrMenu.Append("</li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='home_worth.aspx' title='Home Evaluation'>Home Evaluation</a></li>");
                //StrMenu.Append("<li class='test' style='background:none;'><a href='VirtualTour.aspx' title='Virtual Tour'>Virtual Tour</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                StrMenu.Append("</ul>");
            }
            dynamicmenus.Text = StrMenu.ToString();
        }
        private void BindMenusList()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();
            DataTable     condos_dt = new DataTable();

            condos_dt = clsobj.GetDreamHouse();
            dt        = clsobj.GetMenuList();
            if (dt.Rows.Count > 0)
            {
                string PageName = dt.Rows[0]["PageName"].ToString();
                StrMenu.Append("<a class='toggleMenu' href='#'></a>");
                StrMenu.Append("<ul class='nav'>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='../Home.aspx' title='Home' >Home</a></li>");
                StrMenu.Append("<li><a href=#>Residential & Commercial</a>");//</li>

                StrMenu.Append("<ul >");
                StrMenu.Append("<li><a href='http://www.iciworld.com/result?ft=ntce&[email protected]' title=''>My Haves and Wants</a></li>");
                StrMenu.Append("<li><a href='http://www.iciworld.com/lp4m.jsp?mid=10827&pg=searchAppWOres'>Residential Haves and Wants, Mostly Exclusive</a></li>");
                StrMenu.Append("<li><a href='http://www.iciworld.com/lp4m.jsp?mid=10827&pg=citiesONactive'>Ontario Commercial, Mostly Exclusive </a></li>");
                StrMenu.Append("<li><a href='http://www.iciworld.com/lp4m.jsp?mid=10827&pg=indexworld'> World Commercial</ a></li>");
                StrMenu.Append("<li><a href='http://www.iciworld.com/lp4m.jsp?mid=10827&pg=businessforsaleactive'>Business Haves and Wants </a></li>");
                StrMenu.Append("<li><a href='http://www.iciworld.com/xsearch?ft=fCat'>For Sale by Owner </a></li>");
                StrMenu.Append("</ul>");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsobj.PageID = Convert.ToInt32(dt.Rows[i]["ID"]);
                    dtSubmenu     = clsobj.GetSubMenuBy_PageID();
                    if (dtSubmenu.Rows.Count > 0)
                    {
                        StrMenu.Append("<li><a href=#>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        StrMenu.Append("<ul>");
                        for (int j = 0; j < dtSubmenu.Rows.Count; j++)
                        {
                            StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dtSubmenu.Rows[j]["id"] + "' title='" + dtSubmenu.Rows[j]["PageName"] + "'>" + dtSubmenu.Rows[j]["PageName"] + "</a> </li>");
                        }
                        StrMenu.Append("</ul>");
                        StrMenu.Append("</li>");
                    }
                    else
                    {
                        StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                    }
                }



                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../Calculators.aspx' title='Calculators'>Calculators</a>");
                StrMenu.Append("</li>");

                StrMenu.Append("<li class='test' style='background:none;'><a href='home_worth.aspx' title='Home Evaluation'>Home Evaluation</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='VirtualTour.aspx' title='Virtual Tour'>Virtual Tour</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                StrMenu.Append("</ul>");
            }
            dynamicmenus.Text = StrMenu.ToString();
        }
 protected void FillGridData()
 {
     try
     {
         DataTable dt = new DataTable();
         dt = clsobj.GetDreamHouse();
         grdBannerShow.DataSource = dt;
         grdBannerShow.DataBind();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public void bindddl()
        {
            DataTable dt = new DataTable();

            dt = clsobj.GetDreamHouse();
            if (dt.Rows.Count > 0)
            {
                ddlProject.DataSource     = dt;
                ddlProject.DataValueField = "Id";
                ddlProject.DataTextField  = "Title";
                ddlProject.DataBind();
                //ddlProject.Items.Insert(0, new ListItem("HOMELIFE/MIRACLE REALTY LTD, BROKERAGE", "0"));
            }
        }
        public void bindddl()
        {
            DataTable dt = new DataTable();

            dt = clsobj.GetDreamHouse();
            if (dt.Rows.Count > 0)
            {
                ddlbrokerage.DataSource     = dt;
                ddlbrokerage.DataValueField = "Id";
                ddlbrokerage.DataTextField  = "Title";
                ddlbrokerage.DataBind();
                //ddlbrokerage.Items.Insert(0, new ListItem("Select Project", "0"));
            }
        }
        void bindmenulist()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();

            dt = clsobj.GetDreamHouse();
            if (dt.Rows.Count > 0)
            {
                StrMenu.Append("<ul class='dropdown-menu'>");

                for (int j = 0; j < dt.Rows.Count; j++)
                {
                    StrMenu.Append("<li><a href='../service.aspx?Id=" + dt.Rows[j]["Id"] + "' title='Home'>" + dt.Rows[j]["Title"] + "</a></li>");
                }
                StrMenu.Append("</ul>");
            }
            dynamicmenus.Text = StrMenu.ToString();

            StrMenu.Clear();

            DataTable Resaledt = new DataTable();

            Resaledt = clsobj.GetExclusiveListing();
            if (Resaledt.Rows.Count > 0)
            {
                StrMenu.Append("<ul class='dropdown-menu'>");

                for (int j = 0; j < Resaledt.Rows.Count; j++)
                {
                    StrMenu.Append("<li><a href='../ExclusiveDetailPage.aspx?Id=" + Resaledt.Rows[j]["Id"] + "' title=''>" + Resaledt.Rows[j]["Title"] + "</a></li>");
                }
                StrMenu.Append("</ul>");
            }
            ReSaleMenus.Text = StrMenu.ToString();
        }
Example #7
0
        private void BindMenusList()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();

            dt = clsobj.GetMenuList();
            DataTable condos_dt = new DataTable();

            condos_dt = clsobj.GetDreamHouse();


            if (dt.Rows.Count > 0)
            {
                string PageName = dt.Rows[0]["PageName"].ToString();
                StrMenu.Append("<a class='toggleMenu' href='#'></a>");
                StrMenu.Append("<ul class='nav'>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='../Home.aspx' title='Home' >Home</a></li>");
                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../about.aspx' title='About us'>About us</a>");
                StrMenu.Append("</li>");

                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsobj.PageID = Convert.ToInt32(dt.Rows[i]["ID"]);
                    dtSubmenu     = clsobj.GetSubMenuBy_PageID();
                    //check if it has submenu
                    if (dtSubmenu.Rows.Count > 0)
                    {
                        StrMenu.Append("<li><a href=#>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        StrMenu.Append("<ul>");
                        for (int j = 0; j < dtSubmenu.Rows.Count; j++)
                        {
                            StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dtSubmenu.Rows[j]["id"] + "' title='" + dtSubmenu.Rows[j]["PageName"] + "'>" + dtSubmenu.Rows[j]["PageName"] + "</a> </li>");
                        }
                        StrMenu.Append("</ul>");
                        StrMenu.Append("</li>");
                    }
                    else
                    {
                        //if (PageName == dt.Rows[i]["PageName"].ToString())
                        //{
                        //    StrMenu.Append("<li class='active'><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        //}
                        //else
                        //{
                        StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        // }
                    }
                }

                StrMenu.Append("<li><a href=#>Pre Constructions</a>");//</li>
                if (condos_dt.Rows.Count > 0)
                {
                    StrMenu.Append("<ul >");

                    for (int j = 0; j < condos_dt.Rows.Count; j++)
                    {
                        StrMenu.Append("<li><a href='../DreamHouseDetail.aspx?Id=" + condos_dt.Rows[j]["Id"] + "' title=''>" + condos_dt.Rows[j]["Title"] + "</a></li>");
                    }
                    StrMenu.Append("</ul>");
                }

                StrMenu.Append("<li><a href=#>Neighbourhood Guide</a>");//</li>
                StrMenu.Append("<ul>");
                StrMenu.Append("<li><a href='http://www.edu.gov.on.ca/' title='Schools' target='_blank'>Schools</ a> </li>");
                StrMenu.Append("<li><a href='http://www.trebhome.com/about_GTA/Neighbourhood/index.html' title='Neighbourhoods' target='_blank'>Neighbourhoods</a> </li>");
                StrMenu.Append("<li><a href='RealEstateNews.aspx' title='News' target='_blank'>News</a> </li>");

                StrMenu.Append("</ul>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                //StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                //StrMenu.Append("<li class='test' style='background:none;'><a href='admin/adminlogin.aspx' title='Login'>Login</a></li>");
                StrMenu.Append("</ul>");
            }


            dynamicmenus.Text = StrMenu.ToString();
        }
        private void BindMenusList()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();
            DataTable     condos_dt = new DataTable();

            condos_dt = clsobj.GetDreamHouse();
            dt        = clsobj.GetMenuList();
            if (dt.Rows.Count > 0)
            {
                string PageName = dt.Rows[0]["PageName"].ToString();
                StrMenu.Append("<a class='toggleMenu' href='#'></a>");
                StrMenu.Append("<ul class='nav'>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='../Home.aspx' title='Home' >Home</a></li>");
                StrMenu.Append("<li><a href=#>Exclusive Residential and Commercial </a>");//</li>
                StrMenu.Append("<ul >");
                StrMenu.Append("<li><a href='../my_haves_and_wants.aspx' title=''>My Haves and Wants</a></li>");
                StrMenu.Append("<li><a href='../Residential_Haves_and_Wants.aspx'>Residential Haves and Wants, Mostly Exclusive</a></li>");
                StrMenu.Append("<li><a href='../Ontario_Commercial_Mostly_Exclusive.aspx'>Ontario Commercial, Mostly Exclusive </a></li>");
                StrMenu.Append("<li><a href='../World_Commercial.aspx'> World Commercial</ a></li>");
                StrMenu.Append("<li><a href='../Business_Haves_and_Wants.aspx'>Business Haves and Wants </a></li>");
                StrMenu.Append("<li><a href='../For_Sale_by_Owner.aspx'>For Sale by Owner </a></li>");
                StrMenu.Append("</ul>");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsobj.PageID = Convert.ToInt32(dt.Rows[i]["ID"]);
                    dtSubmenu     = clsobj.GetSubMenuBy_PageID();
                    if (dtSubmenu.Rows.Count > 0)
                    {
                        StrMenu.Append("<li><a href=#>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        StrMenu.Append("<ul>");
                        for (int j = 0; j < dtSubmenu.Rows.Count; j++)
                        {
                            StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dtSubmenu.Rows[j]["id"] + "' title='" + dtSubmenu.Rows[j]["PageName"] + "'>" + dtSubmenu.Rows[j]["PageName"] + "</a> </li>");
                        }
                        StrMenu.Append("</ul>");
                        StrMenu.Append("</li>");
                    }
                    else
                    {
                        StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                    }
                }

                StrMenu.Append("<li><a href=#>Pre Constructions</a>");//</li>
                if (condos_dt.Rows.Count > 0)
                {
                    StrMenu.Append("<ul >");

                    for (int j = 0; j < condos_dt.Rows.Count; j++)
                    {
                        StrMenu.Append("<li><a href='../DreamHouseDetail.aspx?Id=" + condos_dt.Rows[j]["Id"] + "' title=''>" + condos_dt.Rows[j]["Title"] + "</a></li>");
                    }
                    StrMenu.Append("</ul>");
                }

                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../Calculators.aspx' title='Calculators'>Calculators</a>");
                StrMenu.Append("</li>");

                StrMenu.Append("<li class='test' style='background:none;'><a href='home_worth.aspx?PageTitle=HomeWorth' title='Home Evaluation'>Home Evaluation</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                StrMenu.Append("</ul>");
            }
            dynamicmenus.Text = StrMenu.ToString();
        }
Example #9
0
        private void BindMenusList()
        {
            StringBuilder StrMenu   = new StringBuilder();
            DataTable     dt        = new DataTable();
            DataTable     dtSubmenu = new DataTable();

            dt = clsobj.GetMenuList();
            DataTable condos_dt = new DataTable();

            condos_dt = clsobj.GetDreamHouse();


            if (dt.Rows.Count > 0)
            {
                string PageName = dt.Rows[0]["PageName"].ToString();
                StrMenu.Append("<a class='toggleMenu' href='#'></a>");
                StrMenu.Append("<ul class='nav'>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='../Home.aspx' title='Home' >Home</a></li>");

                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsobj.PageID = Convert.ToInt32(dt.Rows[i]["ID"]);
                    dtSubmenu     = clsobj.GetSubMenuBy_PageID();
                    //check if it has submenu
                    if (dtSubmenu.Rows.Count > 0)
                    {
                        StrMenu.Append("<li><a href=#>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        StrMenu.Append("<ul>");
                        for (int j = 0; j < dtSubmenu.Rows.Count; j++)
                        {
                            StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dtSubmenu.Rows[j]["id"] + "' title='" + dtSubmenu.Rows[j]["PageName"] + "'>" + dtSubmenu.Rows[j]["PageName"] + "</a> </li>");
                        }
                        StrMenu.Append("</ul>");
                        StrMenu.Append("</li>");
                    }
                    else
                    {
                        //if (PageName == dt.Rows[i]["PageName"].ToString())
                        //{
                        //    StrMenu.Append("<li class='active'><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        //}
                        //else
                        //{
                        StrMenu.Append("<li><a href='../StaticPages.aspx?PageID=" + dt.Rows[i]["id"] + "' title='" + dt.Rows[i]["PageName"] + "'>" + dt.Rows[i]["PageName"] + "</a>");//</li>
                        // }
                    }
                }

                StrMenu.Append("<li><a href=#>Pre Constructions</a>");//</li>
                if (condos_dt.Rows.Count > 0)
                {
                    StrMenu.Append("<ul >");

                    for (int j = 0; j < condos_dt.Rows.Count; j++)
                    {
                        StrMenu.Append("<li><a href='../DreamHouseDetail.aspx?Id=" + condos_dt.Rows[j]["Id"] + "' title=''>" + condos_dt.Rows[j]["Title"] + "</a></li>");
                    }
                    StrMenu.Append("</ul>");
                }

                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../Calculators.aspx' title='Calculators'>Calculators</a>");
                StrMenu.Append("</li>");
                StrMenu.Append("<li>");
                StrMenu.Append("<a href='../RealEstateNews.aspx' title='Real Estate News'>Real Estate News</a>");
                StrMenu.Append("</li>");
                //StrMenu.Append("<li>");
                //StrMenu.Append("<a href='../About.aspx' title='About Us'>About Us</a>");
                //StrMenu.Append("</li>");

                StrMenu.Append("<li class='test' style='background:none;'><a href='Free-home-evaluation.aspx' title='Home Evaluation'>Home Evaluation</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='VirtualTour.aspx' title='Virtual Tour'>Virtual Tour</a></li>");
                StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                //StrMenu.Append("<li class='test' style='background:none;'><a href='ContactUs.aspx' title='Contact Us'>Contact Us</a></li>");
                //StrMenu.Append("<li class='test' style='background:none;'><a href='admin/adminlogin.aspx' title='Login'>Login</a></li>");
                StrMenu.Append("</ul>");
            }


            dynamicmenus.Text = StrMenu.ToString();
        }