2012-07-30 62 views
-1

如何從請求中獲取用戶在Asp.Net MVC中的位置(國家/地區)?如何獲取用戶位置國家

+0

你有模型中的Country屬性嗎?你想根據用戶代理來確定它嗎?你想要一個IP查找?你有什麼嘗試,你卡在哪裏? – CodeCaster 2012-07-30 12:38:44

+0

可能的重複http://stackoverflow.com/questions/1409108/how-to-get-visitor-location-country-state-and-city-using-asp-net – SidAhmed 2012-07-30 12:39:31

回答

1

您可以嘗試通過IP進行查找。但它不是100%保證的結果。

0
Request.Browser.UserLanguages[0]