protected void radProductCategoryTreeView_Click(object sender, RadTreeNodeEventArgs e) { if (Guid.Parse(e.Node.Value) != Guid.Empty) { Response.Redirect(UrlsData.AP_Products(Guid.Parse(e.Node.Value))); } else { Response.Redirect(UrlsData.AP_Products()); } }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { Title = "Карточка продукта - LeadForce"; if (Page.RouteData.Values["id"] != null) { _productID = Guid.Parse(Page.RouteData.Values["id"] as string); } RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(ddlProductType, radTabs, null, UpdatePanelRenderMode.Inline); RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(ddlProductType, RadMultiPage1, null, UpdatePanelRenderMode.Inline); hlCancel.NavigateUrl = UrlsData.AP_Products(); InitImageGallery(); tagsProduct.ObjectID = _productID; if (!Page.IsPostBack) { BindData(); } }