摘要:
1,获取url值。publicActionResultAbout(){RouteValueDictionaryRVD=newRouteValueDictionary();RVD["myname"]="wtq";ViewData["url"]=Url.RouteUrl("myname",RVD);returnView();}2,在global.ascx文件中配置url路径。publicstaticvoidRegisterRoutes(RouteCollectionroutes){routes.IgnoreRoute( 阅读全文