Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在asp.net mvc 4中创建本地化URL_C#_.net_Asp.net Mvc_Asp.net Mvc 4_Routes - Fatal编程技术网

C# 如何在asp.net mvc 4中创建本地化URL

C# 如何在asp.net mvc 4中创建本地化URL,c#,.net,asp.net-mvc,asp.net-mvc-4,routes,C#,.net,Asp.net Mvc,Asp.net Mvc 4,Routes,我正在尝试在asp.net mvc中创建本地化URL 让我再解释一下。i、 e 控制器名称:Recipt 方法名称:索引 我想根据语言更改控制器的名称。i、 e “en-gb:uk.test.com/recipt” “fr BE:BE.test.com/fr/rezipt” “nl BE:BE.test.com/nl/reziptdutch” 注意:我使用“{language}/{controller}/{action}/{id}”设置了路由表,但它没有按预期工作。有可能吗?使用MVC提供的全球

我正在尝试在asp.net mvc中创建本地化URL

让我再解释一下。i、 e

控制器名称:Recipt
方法名称:索引

我想根据语言更改控制器的名称。i、 e

“en-gb:uk.test.com/recipt”
“fr BE:BE.test.com/fr/rezipt”
“nl BE:BE.test.com/nl/reziptdutch”


注意:我使用
“{language}/{controller}/{action}/{id}”
设置了路由表,但它没有按预期工作。有可能吗?

使用MVC提供的全球化概念。你不必创建这些url。它由MVC处理。有关更多详细信息,请访问或