求一个asp.net(c#)制作文档管理系统用txt文本代替数据库的系统当作参考
123456789routes.MapRoute( "Default", // 路由名称 "{controller}/{action}/{id}", // 带有参数的 https:///s?wd=URL&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9rjTYPWm1m1-9mHbsPj6z0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLn164P1TLn1TYrHmvP16drf" target="_blank" class="baidu-highlight">URL</a> new { controller = "Home", action = "Index", id = https:///s?wd=Url&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9rjTYPWm1m1-9mHbsPj6z0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLn164P1TLn1TYrHmvP16drf" target="_blank" class="baidu-highlight">Url</a>Parameter.Optional } // 参数默认值 );一般来说 路由是这样的 你写的那个 要自定义路由了 定义一个路由首先你要写控制器名字和方法名 比如 123456789routes.MapRoute( "Default2", // 路由名称 "{a}/{b}/{c}/{d}", // 带有参数的 https:///s?wd=URL&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9rjTYPWm1m1-9mHbsPj6z0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLn164P1TLn1TYrHmvP16drf" target="_blank" class="baidu-highlight">URL</a> new { controller = "Home", action = "Index", a ="1",b="2",c="3",d="4" } // 参数默认值 );这个路由写得比较简单 但是实际上 这个路由调用的是 Home控制器下面 Index()//4个参数 我是这样理解的 也是这样用的 如有发现不对的地方 麻烦指出来 大家学习下 给你看看我写的路由 12345678910111213141516171819202122232425262728routes.MapRoute( "Caps2", "San-Francisco-49ers-Hats", new { controller = "PClass", action = "Caps" } ); routes.MapRoute( "Versions2", "San-Francisco-49ers-{Version}-Jersey-Page-{p}", new { controller = "PClass", action = "SiteVersion2" }, new { Version = @"(EliteLimitedGame)$", p = @"\+?[1-9][0-9]*" } ); routes.MapRoute( "Versions", "San-Francisco-49ers-{Version}-Jersey", new { controller = "PClass", action = "SiteVersion" }, new { Version = @"(EliteLimitedGame)$" } );