示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LinkButton1.Attributes["href"] = "harita/harita.aspx" + "?cat=" + Request.QueryString["cat"] + "&tur=" + Request.QueryString["tur"];
                verilenReklamBll  vrb  = new verilenReklamBll();
                DAL.verilenReklam rklm = vrb.search(2, 10);
                if (rklm != null)
                {
                    dkdrtgnRklm.ImageUrl = ("~/upload/reklam/" + rklm.reklamResim);
                }
                else
                {
                    dkdrtgnRklm.ImageUrl = ("~/upload/reklam/dkdrt.jpg");
                }

                drpIl.DataSource     = ilb.list();
                drpIl.DataTextField  = "ilAdi";
                drpIl.DataValueField = "ilId";
                drpIl.DataBind();

                ListItem lst = new ListItem();
                lst.Value = "";
                lst.Text  = "Seçiniz";
                drpIl.Items.Insert(0, lst);

                if (Request.QueryString["kategoriId"] != null && Request.QueryString["tur"] != null)
                {
                    kategoriRepeater.DataSource = ktgTurb.list(2, Request.QueryString["kategoriId"], Request.QueryString["tur"]);
                    kategoriRepeater.DataBind();
                }


                ustStr.InnerText = kategorib.search(Convert.ToInt32(kategorib.search(Convert.ToInt32(Request.QueryString["kategoriId"])).ustKategoriId)).kategoriAdi;
                altStr.InnerText = kategorib.search(Convert.ToInt32(Request.QueryString["kategoriId"])).kategoriAdi;

                if (Request.QueryString["kategoriId"] != "4" & Request.QueryString["cat"] == null)
                {
                    ilanRepeater.DataSource = ilanb.list_admin(9, 2, Request.QueryString["kategoriId"], Request.QueryString["tur"], 6);
                    ilanRepeater.DataBind();
                }

                if (catKind(Request.QueryString["kategoriId"]) != true)
                {
                    ilanRepeater.DataSource = ilanb.list_admin(8, 2, Request.QueryString["kategoriId"], 6);
                    ilanRepeater.DataBind();
                }
            }

            if ((Request.QueryString["cat"] != null || Request.QueryString["kategoriId"] == "4"))
            {
                ilanRepeater.DataSource = ilanb.list_admin(8, 2, Request.QueryString["cat"], Request.QueryString["tur"], 6);
                ilanRepeater.DataBind();
            }
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            kategoriBll ktgb = new kategoriBll();
            kategori    ktg  = ktgb.search(Convert.ToInt32(Request.QueryString["cat"]));

            HyperLink btn = this.Master.FindControl("btn_liste") as HyperLink;

            btn.Visible     = true;
            btn.NavigateUrl = "~/ilan-liste.aspx?cat=" + Request.QueryString["cat"] + "&tur=" + Request.QueryString["tur"] + "&kategoriId=" + ktg.ustKategoriId;

            if (!IsPostBack)
            {
                drpIl.DataSource     = ilb.list();
                drpIl.DataTextField  = "ilAdi";
                drpIl.DataValueField = "ilId";
                drpIl.DataBind();

                ListItem lst = new ListItem();
                lst.Value = "";
                lst.Text  = "Seçiniz";
                drpIl.Items.Insert(0, lst);

                acilRepeater.DataSource = haritab.ilanGetir(drpIl.SelectedValue);
                acilRepeater.DataBind();

                verilenReklamBll vrb = new verilenReklamBll();
                reklamRepeater.DataSource = vrb.listHarita(2, drpIl.SelectedValue);
                reklamRepeater.DataBind();
            }
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LinkButton1.Attributes["href"] = "harita/harita.aspx" + "?cat=" + Request.QueryString["cat"] + "&tur=" + Request.QueryString["tur"];
                verilenReklamBll  vrb  = new verilenReklamBll();
                DAL.verilenReklam rklm = vrb.search(2, 10);
                if (rklm != null)
                {
                    dkdrtgnRklm.ImageUrl = ("~/upload/reklam/" + rklm.reklamResim);
                }
                else
                {
                    dkdrtgnRklm.ImageUrl = ("~/upload/reklam/dkdrt.jpg");
                }
                drpIl.DataSource     = ilb.list();
                drpIl.DataTextField  = "ilAdi";
                drpIl.DataValueField = "ilId";
                drpIl.DataBind();

                ListItem lst = new ListItem();
                lst.Value = "";
                lst.Text  = "Seçiniz";
                drpIl.Items.Insert(0, lst);

                if (Request.QueryString["kategoriId"] != null && Request.QueryString["tur"] != null)
                {
                    kategoriRepeater.DataSource = ktgTurb.list(2, Request.QueryString["kategoriId"], Request.QueryString["tur"]);
                    kategoriRepeater.DataBind();
                }


                ustStr.InnerText = kategorib.search(Convert.ToInt32(kategorib.search(Convert.ToInt32(Request.QueryString["kategoriId"])).ustKategoriId)).kategoriAdi;
                altStr.InnerText = kategorib.search(Convert.ToInt32(Request.QueryString["kategoriId"])).kategoriAdi;

                if (Request.QueryString["kategoriId"] != "4" & Request.QueryString["sub"] == null)
                {
                    ilanRepeater.DataSource = ilanb.list_admin(9, 2, Request.QueryString["kategoriId"], Request.QueryString["tur"], 4);
                    ilanRepeater.DataBind();
                }

                if (catKind(Request.QueryString["kategoriId"]) != true)
                {
                    ilanRepeater.DataSource = ilanb.list_admin(8, 2, Request.QueryString["kategoriId"], 4);
                    ilanRepeater.DataBind();
                }
            }

            if ((Request.QueryString["sub"] != null || Request.QueryString["kategoriId"] == "4"))
            {
                ilanRepeater.DataSource = ilanb.list_admin(8, 2, Request.QueryString["sub"], Request.QueryString["tur"], 4);
                ilanRepeater.DataBind();
            }

            if ((Request.QueryString["cat"] != null || Request.QueryString["tur"] != null))
            {
                tum_ilanlar.InnerText              = ilanb.countIlanListe(1, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                sahibinden.InnerText               = ilanb.countIlanListe(2, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                emlakcidan.InnerText               = ilanb.countIlanListe(3, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                bankadan.InnerText                 = ilanb.countIlanListe(4, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                belediyeden.InnerText              = ilanb.countIlanListe(5, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                icradan.InnerText                  = ilanb.countIlanListe(6, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                izaleyi_suyu.InnerText             = ilanb.countIlanListe(7, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                milli_hazineden.InnerText          = ilanb.countIlanListe(8, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                ozellestirme_dairesinden.InnerText = ilanb.countIlanListe(9, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                kamu_kurumlarindan.InnerText       = ilanb.countIlanListe(10, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
                insaat_firmasindan.InnerText       = ilanb.countIlanListe(11, Request.QueryString["cat"], Request.QueryString["tur"]).ToString();
            }
        }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            kategori _kategori = kategorib.search(Convert.ToInt32(Request.QueryString["kategoriId"]));

            txtKategori.Value = _kategori.kategoriAdi;
        }