Solved

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

Posted on 2014-01-23
1
383 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now