-1

How do i get the User`s Location (Country) in Asp.Net MVC from Request?

Stacker
  • 7,899
  • 17
  • 71
  • 130
  • Have you got a Country property in your model? Do you want to determine it based on the user agent? Do you want an IP lookup? What have you tried, where are you stuck? – CodeCaster Jul 30 '12 at 12:38
  • Possible duplication of http://stackoverflow.com/questions/1409108/how-to-get-visitor-location-country-state-and-city-using-asp-net – SidAhmed Jul 30 '12 at 12:39

2 Answers2

1

You may try to do a lookup by IP. But it's not 100% guaranteed result.

Sergei Rogovtcev
  • 5,784
  • 2
  • 21
  • 35
0
Request.Browser.UserLanguages[0]
Edi Wang
  • 3,417
  • 6
  • 28
  • 51