urlformat.cs
来自「具有一般blog的相册、文章、作品等功能程序结构也比较清晰采用三层结构开发(利用」· CS 代码 · 共 39 行
CS
39 行
using System;
using System.Web.Security;
using System.Security.Cryptography;
using System.Text;
using System.Web;
namespace liuwei.FrameWork
{
/// <summary>
/// UrlFormat 的摘要说明。
/// </summary>
public class UrlFormat
{
public UrlFormat()
{
}
//format content url
public static string ContentUrl(DateTime dt,int PostID)
{
return string.Format("Content,{0},{1},{2}," + PostID + ".aspx",dt.Year,dt.Month,dt.Day);
}
//format content types url
public static string ContentTypeUrl(int bigTypeID,int smallTypeID)
{
return string.Format("list," + bigTypeID + "," + smallTypeID + ".aspx");
}
//format rss url
public static string RssUrl(int bigTypeID,int smallTypeID)
{
return string.Format("Rss," + bigTypeID + "," + smallTypeID + ".aspx");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?