示例#1
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();
            }
        }