⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urlredirectdetails.aspx.cs

📁 community server 源码
💻 CS
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Web.UI.WebControls;
using CommunityServer.Components;
using CommunityServer.ControlPanel.Controls;
using CommunityServer.ControlPanel.UI;
using CommunityServer.Controls;

namespace CommunityServer.ControlPanel.Tools
{
	/// <summary>
	/// Summary description for UrlRedirectDetails.
	/// </summary>
	public class UrlRedirectDetails : BaseToolsPage
	{
		protected Label UrlID;
		protected Label Url;
		protected Label Description;
		protected Label Impressions;
		protected TextBox TinyUrl;

		private UrlRedirect urlRedirect = null;

		override protected void OnInit(EventArgs e)
		{
			this.Load += new EventHandler(this.Page_Load);
			base.OnInit(e);
		}

		private void Page_Load(object sender, EventArgs e)
		{
			CSContext context = CSContext.Current;
			int urlID = context.GetIntFromQueryString("UrlID", 0);

			Head.AddTitle("Url Redirect", this.Context);

			urlRedirect = CommonDataProvider.Instance().GetUrlRedirect(urlID);
			Bind();
		}

		private void Bind()
		{
			UrlID.Text = urlRedirect.ID.ToString();
			Url.Text = urlRedirect.Url;
			Description.Text = urlRedirect.Description;
			Impressions.Text = urlRedirect.Impressions.ToString();
			TinyUrl.Text = urlRedirect.TinyUrl;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -