Example #1
0
    protected void BindAds()
    {
        string thisPath = Request.Url.LocalPath;

        PageName = System.IO.Path.GetFileName(thisPath);

        Ads = AdController.GetByPage(PageName, BoxPlacement.ToString());
        repeater.ItemDataBound += new RepeaterItemEventHandler(repeater_ItemDataBound);
        repeater.DataSource     = Ads;
        repeater.DataBind();
    }