Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

12 Experts available now in Live!

Get 1:1 Help Now