如何在加载项目时获取国家/地区名称 [英] How to get country name when project is loaded

查看:99
本文介绍了如何在加载项目时获取国家/地区名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在做一个电子商务项目。这也将被外国客户使用。所以当客户加载应用程序时,根据他的国家/地区的货币和产品的价格应该更新。但我没有得到如何编写获取当地国家和货币名称的代码。请任何人帮我完成这项任务。我需要C#代码。

提前完成。

Hello every one,
I am doing a e-commerce project.That will be used by foreign customers as well.So when ever a customer loads the application, based on his country the currency and price of the product should be updated.But i am not getting how to write the code for getting the local country and currency name.Please any one help me in accomplishing this task.I need C# code for this.
Thanx in advance.

推荐答案

有很多方法。你可以试试。



1. 回复:如何知道国家用户的位置 - asp.net C# [ ^ ]

2. 在Asp.net中获取用户位置 [ ^ ]

3. 在Asp.Net中查看来自访客IP的国家 [ ^ ]
There are many methods. You can try.

1. Re: How to Know Country Location of a user - asp.net C#[^]
2. Getting User Location in Asp.net[^]
3. Finding Country from Visitors IP in Asp.Net[^]


简单的选项是使用一些jqueyr像对话模型一样的插件。每当有人访问您的网站时会显示一个下拉菜单并要求他们选择国家/地区。根据该值,您可以为您的产品设置价格和货币。



快乐编码:)
well simple option is to use some jqueyr plugin like dialog model. whenever some one visit your site show a dropdown and ask them to select country. based on that value you can set price and currency for your products.

Happy coding :)


这篇关于如何在加载项目时获取国家/地区名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆