Solved

How do I capture Geolocation on mobile phones in server code?

Posted on 2014-01-23
1
391 Views
Last Modified: 2014-01-24
What I need is to grab someone's city and state and have those available as string variables I can then manipulate in my sever code behind.  I code in VB.  Is this possible?  

I don't want to use IP addresses to resolve location information because they are grossly inaccurate on mobile phones.  I would like to use geolocation built into HTML5.  But I don't know how to "capture" this in codebehind.

I know about this URL
http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-geolocation.html

But I don't know how to then take the city+state (or region/country) information and have it available as variables in code behind.

I basically simply need access to variables  CITY, REGION, COUNTRY  in VB code...or at least (at minimum) the variables LAT and LONG available in the VB code.

How can I do this?
0
Comment
Question by:arthurh88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39806119
You can post the information from browser to the server side using jquery

Example here

http://encosia.com/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to remove duplicate code from my project 5 49
asp web application 3 41
Exception when using Alea null reference in fsharp.core.dll 3 52
Adjust the codes 3 30
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question