예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            MLS myMLS = new MLS();

            dlFeaturedListings.DataSource = myMLS.getFeaturedListings("edit");
            dlFeaturedListings.DataBind();


            //List<Listing> lListing = null;
            //if (Request.QueryString["type_id"] != null)
            //{
            //    lListing = myMLS.getListingsByTypeID(Convert.ToInt32(Request.QueryString["type_id"].ToString()),"edit");
            //}
            //else
            //{
            //    lListing = myMLS.getFeaturedListingsToAdmin();
            //}
            //ListingCollection lc = myMLS.getRents("edit");
            //gvRents.DataSource = lListing;
            //gvRents.Columns[3].HeaderStyle.CssClass = "neutral";
            //gvRents.DataBind();
            this.Master.Change_Nav("Admin");
        }
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MLS mls = new MLS();

        dlFeaturedListings.DataSource = mls.getFeaturedListings("listing");
        dlFeaturedListings.DataBind();

        if (Request.UrlReferrer != null)
        {
            referral = Request.UrlReferrer.ToString();
        }

        //ltrFeatures.Text = "<h1>"+sbCode.ToString()+"</h1>";
    }