/// <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) { siteID = ((LeadForceBasePage)Page).SiteId; gridSiteActionTemplates.AddNavigateUrl = UrlsData.AP_SiteActionTemplateAdd(); gridSiteActionTemplates.Actions.Add(new GridAction { Text = "Редактировать", NavigateUrl = string.Format("~/{0}/SiteActionTemplates/Edit/{{0}}", Page.RouteData.Values["tab"] as string), ImageUrl = "~/App_Themes/Default/images/icoView.png" }); gridSiteActionTemplates.Where.Add(new GridWhere { Column = "SiteActionTemplateCategoryID", Value = ((int)SiteActionTemplateCategory.BaseTemplate).ToString() }); gridSiteActionTemplates.SiteID = siteID; }