Monday, August 8, 2011

How Do You Know the Country Location of User - C # Asp.net?

You can use below code snippet to get the region description of the current user.


using System.Globalization;

string name = RegionInfo.CurrentRegion.DisplayName;

For more information visit below link

http://www.msdn.microsoft.com/en-us/library/system.globalization.regioninfo(vs.71).aspx

SPONSORS:

No comments:

Post a Comment