如何获得在asp.net中当前用户位置 [英] How to get a current user location in asp.net
问题描述
有一个网站支持,如食品,饮料,高尔夫,水疗店的信息。
该网站提供了有关泰国,香港,新加坡和柬埔寨的信息。
如果来自泰国的用户连接本网站。默认的菜单将被设置为泰国。
如果从香港用户使用本网站。我们将设置默认的菜单到香港。
如果从其他国家用户不在列表中。默认将被设置为泰国。
There is a website that support shops information like food,drink,golf,spa. This websites provide information on Thailand, Hongkong, Singapore and Cambodia. If a user from Thailand connect this website. The default menu will be set to Thailand. If a user from Hongkong use this website. We will set default menu to Hongkong. If a user from others country that is not in the list. the default will be set to Thailand.
什么是做到这一点的最好办法。
What is the best way to do this.
推荐答案
我使用谷歌装载机 https://开头开发商.google.com /装载机/ 。
Similiar问题<一href=\"http://stackoverflow.com/questions/2053624/getting-user-location-with-google-loader-clientlocation-working-for-me-but-not-o\">here在SO 。该接受的答案,甚至有一个示范页面。
Similiar question here on SO. The accepted answer even has an example page.
这篇关于如何获得在asp.net中当前用户位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!