routetable.routes[name]

怎么取指定值,web窗体链接一般怎么调用routetable
没用过routetable 能说说规范的写法和运行原理吗

///
/// 链接管理。
/// 管理链接创建规则、生成链接
///
public static class LinkManagement
{
//获取域名
private static readonly string DomainName = ConfigurationManager.AppSettings["DomainName"];
private static RouteCollection routes = RouteTable.Routes;

    #region 书籍链接管理
    /// <summary>
    /// 书籍链接管理
    /// </summary>
    public static class Book
    {

        /// <summary>
        /// 注册Book路由链接
        /// </summary>
        public static void RegisterBookRoute()
        {
            //书籍全部ID
            DataTable dt = BookBLL.instance.GetALLID();

            //生成书籍路由
            foreach (DataRow dr in dt.Rows)
            {
                routes.MapPageRoute("Book" + dr["ID"], DomainName + "/book/" + dr["UrlAddress"], "~/book/List.aspx?BookID=" + dr["ID"]);
            }

        }

        /// <summary>
        /// 注册Chapter路由链接
        /// </summary>
        public static void RegisterChapterRoute()
        {
            //章节全部ID
            DataTable dt = ChapterBLL.Instance.GetALL();

            //生成章节路由
            foreach (DataRow dr in dt.Rows)
            {
                routes.MapPageRoute("Chapter" + dr["ID"], DomainName + "/Chapter/" + dr["UrlAddress"], "~/book/List.aspx?BookID=" + dr["ID"]);
            }

        }

        /// <summary>
        /// 获取指定ID的书籍路由,默认~/msg/404.aspx
        /// </summary>
        /// <param name="BookID"></param>
        /// <returns></returns>
        public static string GetBookRoute(int BookID)
        {
            //路由错误默认页面
            string route = "~/msg/404.aspx";
            //请指点
            return route;
        }

        /// <summary>
        /// 获取指定ID的详细页面路由,默认~/msg/404.aspx
        /// </summary>
        /// <param name="BookID"></param>
        /// <returns></returns>
        public static string GetChapterRoute(int ChapterID)
        {
            //路由错误默认页面
            string route = "~/msg/404.aspx";
            if (routes["Chapter" + ChapterID].RouteExistingFiles)
            {
                route = routes["Chapter" + ChapterID].ToString();
            }
            return route;
        }



    }
    #endregion

    #region 文章链接管理
    public static class Article
    {

    }
    #endregion

    #region 栏目链接管理
    public static class Column
    {

    }
    #endregion

    #region 标签链接管理
    public static class Tag
    {

    }
    #endregion

    #region 专题链接管理
    public static class Feature
    {

    }
    #endregion



}




    贴上代码,请指点