Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            notRegisteredError.Style.Add("display", "none");
            if (Session["User"] == null)
            {
                notRegisteredError.Style.Add("display", "");
                notRegisteredError.Text = "Only registered users can use this feature";
            }
            else
            {
                PetStore.Class.User oUser  = (PetStore.Class.User)Session["User"];
                DataTable           dtCity = new DataTable();
                PetStore.DB.Data    oDB    = new PetStore.DB.Data();


                rptOrder.DataSource = oDB.GetOrders(oUser.ID);;
                rptOrder.DataBind();
            }
        }