<tfoot id='inHQ9'></tfoot>
      1. <small id='inHQ9'></small><noframes id='inHQ9'>

        <legend id='inHQ9'><style id='inHQ9'><dir id='inHQ9'><q id='inHQ9'></q></dir></style></legend>
        <i id='inHQ9'><tr id='inHQ9'><dt id='inHQ9'><q id='inHQ9'><span id='inHQ9'><b id='inHQ9'><form id='inHQ9'><ins id='inHQ9'></ins><ul id='inHQ9'></ul><sub id='inHQ9'></sub></form><legend id='inHQ9'></legend><bdo id='inHQ9'><pre id='inHQ9'><center id='inHQ9'></center></pre></bdo></b><th id='inHQ9'></th></span></q></dt></tr></i><div id='inHQ9'><tfoot id='inHQ9'></tfoot><dl id='inHQ9'><fieldset id='inHQ9'></fieldset></dl></div>

        • <bdo id='inHQ9'></bdo><ul id='inHQ9'></ul>
      2. IP 地址为 127.0.0.1 的地理定位错误

        Geolocation error with IP address 127.0.0.1(IP 地址为 127.0.0.1 的地理定位错误)
      3. <small id='YUR2F'></small><noframes id='YUR2F'>

        <tfoot id='YUR2F'></tfoot>
          <tbody id='YUR2F'></tbody>
          <bdo id='YUR2F'></bdo><ul id='YUR2F'></ul>
            <legend id='YUR2F'><style id='YUR2F'><dir id='YUR2F'><q id='YUR2F'></q></dir></style></legend>

              1. <i id='YUR2F'><tr id='YUR2F'><dt id='YUR2F'><q id='YUR2F'><span id='YUR2F'><b id='YUR2F'><form id='YUR2F'><ins id='YUR2F'></ins><ul id='YUR2F'></ul><sub id='YUR2F'></sub></form><legend id='YUR2F'></legend><bdo id='YUR2F'><pre id='YUR2F'><center id='YUR2F'></center></pre></bdo></b><th id='YUR2F'></th></span></q></dt></tr></i><div id='YUR2F'><tfoot id='YUR2F'></tfoot><dl id='YUR2F'><fieldset id='YUR2F'></fieldset></dl></div>
                • 本文介绍了IP 地址为 127.0.0.1 的地理定位错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  好的,所以我尝试实现这个,http://ipaddressextensions.codeplex.com/.

                  OK, so I tried implementing this, http://ipaddressextensions.codeplex.com/.

                  将输出显示为:-

                  127.0.0.1 保留 ZZ

                  127.0.0.1 RESERVED ZZ

                  这个RESERVED"和ZZ"到底是什么?它应该显示为印度".

                  What on earth is this "RESERVED" and "ZZ"? It should be displayed as "INDIA IN".

                  IP 地址是本地主机的.好的,但是国家名称和国家代码呢?为什么它们不能正确显示?我需要对我的代码进行哪些更改?

                  The IP address is of the local host. All right, but what about the country name and country code? Why won't they display correctly? What do I need to change in my code?

                  推荐答案

                  当您在家进行测试时,服务器和用户是一体的(您的 PC).所以你不能指望它显示国家,因为 IIS 的 IP 地址是一个自己的地址.

                  When you are testing from home, both server and user are one (your PC). So you can't expect it to show the country as the IP address for IIS is a self address.

                  您的代码似乎没问题.您也可以使用免费的 ASP.NET 支持主机在线试用您的网站.有很多像 HelioHost, 0000free等

                  Your code seems to be fine. Also you can use a free ASP.NET supporting host to try your website online. There are many like HelioHost, 0000free, etc.

                  关于您问题的编辑部分,如果您为每个国家/地区使用不同版本的网站,那么最好使用开关.

                  Regarding the edit part of your question, if you are using different versions of the site for each country then wouldn't be using a switch better.

                  switch(iso3166TwoLetterCode.ToUpper())
                  {
                      case "IN" : Response.Redirect("www.mysite.in");
                      case "FR" : Response.Redirect("www.mysite.fr");
                      ...
                      Default : Response.Redirect("www.mysite.in");
                  }
                  

                  我认为它确实看起来更整洁.

                  I think it does look neater.

                  这篇关于IP 地址为 127.0.0.1 的地理定位错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                  IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                  .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                      • <bdo id='VkZB7'></bdo><ul id='VkZB7'></ul>

                        1. <tfoot id='VkZB7'></tfoot>

                          <i id='VkZB7'><tr id='VkZB7'><dt id='VkZB7'><q id='VkZB7'><span id='VkZB7'><b id='VkZB7'><form id='VkZB7'><ins id='VkZB7'></ins><ul id='VkZB7'></ul><sub id='VkZB7'></sub></form><legend id='VkZB7'></legend><bdo id='VkZB7'><pre id='VkZB7'><center id='VkZB7'></center></pre></bdo></b><th id='VkZB7'></th></span></q></dt></tr></i><div id='VkZB7'><tfoot id='VkZB7'></tfoot><dl id='VkZB7'><fieldset id='VkZB7'></fieldset></dl></div>
                        2. <small id='VkZB7'></small><noframes id='VkZB7'>

                            <tbody id='VkZB7'></tbody>
                          <legend id='VkZB7'><style id='VkZB7'><dir id='VkZB7'><q id='VkZB7'></q></dir></style></legend>