Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack && !string.IsNullOrEmpty(Request.QueryString["Id"]))
     {
         CategoryView1.PriceListID   = Convert.ToInt32(Request.QueryString["Id"]);
         CategoryView1.UrlToNavigate = "/pricelists/items/edit/";
         CategoryView1.DataBind();
     }
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack && !string.IsNullOrEmpty(Request.QueryString["Id"]))
            {
                CategoryView1.PriceListID = Convert.ToInt32(Request.QueryString["Id"]);

                PublishList pl = ControllerManager.PublishList.GetPublishedList(Convert.ToInt32(Request.QueryString["Id"]));
                if (pl != null)
                {
                    CategoryView1.PublishListID = pl.ID;
                }

                CategoryView1.UrlToNavigate = "/pricelists/items/published/";
                CategoryView1.DataBind();
            }
        }