using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CB.Common; using CB.Data; using CB.Entity; using CB.Framework; namespace CB.Admin.Plugins.TrendTool { public partial class TrendToolsPagePreview : AdminPage { protected void Page_Load(object sender, EventArgs e) { int PageID = WRequest.GetQueryInt("PageID"); TrendChartInfo entity = TrendChartService.Get(PageID); if (!string.IsNullOrEmpty(entity.Url)) { Response.Redirect(entity.Url + "?status=preview"); } else { ShowMessageBox("获取预览页面配置地址失败!"); } } } }