Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["SelectedCategoryID"] != null)
            {
                int.TryParse(Session["SelectedCategoryID"].ToString(), out selectedCategoryID);
                ListGoods1.SelectedCategoryID = selectedCategoryID;

                if (!Page.IsPostBack)
                {
                    CategoriesActions categotiesActions = new CategoriesActions();
                    LabelSelectedCategory.Text = "Category selected: " +
                    categotiesActions.FindCategoryName(selectedCategoryID);
                }
            }
        }