How can I find a user's GEO Location using ASP.NET?

前端 未结 2 1667
暖寄归人
暖寄归人 2021-01-06 16:05

How can I get hold of a user\'s GEO location within my ASP.NET application? I\'ve noticed on browsers like Firefox and Google Chrome, I (as the user) am prompted as to wheth

2条回答
  •  灰色年华
    2021-01-06 16:46

    Use the regular HTML5 Geolocation tools to get the location and then use AJAX to send the location back to your ASP.NET Server Side code and update whatever client elements are necessary.

提交回复
热议问题