Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

13 Experts available now in Live!

Get 1:1 Help Now