2
Answers

How to add country code or culture in url

i like to know how could we add culture or country code in url of asp.net webform project and asp.net mvc4/5 project.
 
i search lot but found none such. i found few article they show how to set culture in code just render data from right resource file but none show how to add culture or country code in url.
 
i want when i will start my project then then url would look like http://localhost:port/gb or http://localhost:port/en-gb
 
and right country code or culture code will be added in other links in of the page.
 
there will be country flag when user click in germany flag then german country code or culture code will be added in url.
 
please advise me how to do it. it would be better if some one shared few article links which show how to add country code or culture code in url whose code i can download and run in my pc.
 
thanks 
 
Answers (2)
0
Satyapriya Nayak

Satyapriya Nayak

NA 53k 8m 11y
OLE DB is a set of COM-based interfaces that expose data from a variety of sources. OLE DB interfaces provide applications with uniform access to data stored in diverse information sources, or data stores. These interfaces support the amount of DBMS functionality appropriate to the data store, enabling the data store to share its data.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms722784%28v=vs.85%29.aspx

Language-Integrated Query (LINQ) is a set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic. LINQ introduces standard, easily-learned patterns for querying and updating data, and the technology can be extended to support potentially any kind of data store. Visual Studio includes LINQ provider assemblies that enable the use of LINQ with .NET Framework collections, SQL Server databases, ADO.NET Datasets, and XML documents.

http://msdn.microsoft.com/en-us/library/vstudio/bb397926.aspx
Accepted