C# - Get User Location By IP Address?
Dec 1, 2010I have site ( ASP.NET, C# ) and I need to automatic show start page based on user location. Can I get name of user city if I have IP address of user ?
View 5 RepliesI have site ( ASP.NET, C# ) and I need to automatic show start page based on user location. Can I get name of user city if I have IP address of user ?
View 5 RepliesPossible Duplicate:
How to get visitor location ( country, state and city ) using ASP.NET
How get user location using user IP address using asp.net?
Following is my code when user enters hospital name and city, he will be navigated to this page to show location on map. Now I want to get user current location and draw the route between current location and destination. Is there any way to integrate to geocoding and geolocation?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
html, body, #map-canvas
[Code] ....
Is there a function that can determine your IP address or location? I am using ASP.Net (Visual Basic)
View 8 Repliesi am developing an application which makes use of Google maps. Google maps API returns the result with map on new screen but I want to retrieve only the latitude and longitudinal coordinates.:
How to retrieve them
How to dynamically send name and address of the location
I buildt an application which stores the values of the visiters of our website. date of visit, browser type, ip address, etc. I just what to locate their location according to ip address automatically. How can I do that? do I need to use a external database to retrive ip address locations?
View 2 RepliesI want to check one IP address is from particular location or not. Suppose i want to check that IP address is from banglore city or not.
View 1 RepliesI have developed an asp.net application .....Here i need to get Client IP Address , Date Of Visit and Location of the client .....And other useful client information which should be uniquely identifiy users from others ....
View 5 RepliesI want to know about some FREE web service to which i give the ip address as the input and it will return with the Location info(e.g. Country,State,City etc) ,Language info (e.g. en-US,fr-FR etc), and the TimeZoneOffset (with respect to GMT) for the corresponding ip address. I also want this web service to handle DaylightSaving issue properly for any place in the world.
View 6 RepliesI'm making a site that has a map in it and can search places and will locate the place.
View 1 RepliesThe page is not redirecting to another tab...the address is opening in the current tab itself but i want the address of google map to be redirected in another tab.my code is
protected void Button1_Click(object sender, EventArgs e)
{
string address;
try
{
[Code]....
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
[Code] ....
currently I am working on an activities management system, in this application I want to give facility to show the visitor location of this site. I am using c# and asp.net so how we should start implementation
View 3 Replieshow should i find the user country when the open the website ?
View 2 RepliesI am creating a web site in visual studio 2008.
I want to allow the current user to log in but log off any other person logged in under the same username as the current user. (just like like Y!M does when you log in from a different location: It signs you out from the initial location) For managing log in and sign up i am using visual studio createuserwizard and log in cotrol.
Can anyone explain how to make unique login in asp.net
<b>Problem:</b> If user is logged at a client machine and tries to login from other client machine at the same time, then he should be prompted that "You are already logged in, Do you want to continue?" on continue user should be logged out from other machine and logged in to current machine.
I have develop an ASP.NET website and I want store some uploaded files in a shared location in some different server. On that server one user has the access.
how it is possible to get the access of the shared location on the server with my Web site?
Let me tell you what I need to implement on my company .NET application and I will be more than glad to hear your advise how to do it:
For every user loged-in to the company website, We want to know on which page he is right now. It means, If user X is now on page "1.html", I need to save this information somewhere. If user X after 30-60 seconds going to page "2.html" I want to update it fast where he is now surfing. It means I want to be able to tell at REAL TIME, on each page, Which users are right now observing the page. This is the problem, now I'm looking for the right solution.
If some day my company website will have 400,000 user log-in at the same time, I am going to save to every one of them where he is surfing right now. Maybe I exaggerated, but we do have 45,000 users at the same time on the company web site and the number is growing. I think big so the solution for this problem will be good for a lot of users.
So, my data object for every user should keep this information somewhere:
1. User code (User Number).
2. Which page user is now observing (Page Number).
This object is going to update every 30-60 seconds by using AJAX, so it should be updated fast. It is a lot of reading/writing data. If a user want to see which other users are now on the same page as he his, he will be able to see it, just by going through the whole array of objects.
I don't need this information to be saved in DB, because it doesn't mean anything. It is temporary and changing A LOT. So, I think the right place to do it is using RAM at the the company server, using the Caching Data option. What do you think? Am I wrong?
If I am going to have a data table with lots of records and every record is going to be update every 30-60 seconds. Where should I save all this table data? I am using SQL Server 2008 to save important data as needed, but this data is not important to save, just need to use it for my purpose. Where should I save this data? I think saving it in DB is a bad idea, because of the dynamic update of records every few seconds. I am thinking about 100,000 users who update this table every few seconds. It probably going to kill my DB, so DB is not an option.
What is the right way to implement this kind of thing?
You may think of it like every page is "a chat room" and I want to know who enter now the room (the page), it doesn't have to be completely accurate in time, but approximately.
I have a very simplistic user control that looks like this:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wfWindow.ascx.cs" Inherits="webfanatix.co.za.wfWindow" %>
<div>Just a test...[x]</div>
with this code behind:
[ParseChildren(false)]
[PersistChildren(true)]
public partial class wfWindow : System.Web.UI.UserControl
{
protected override void Render(HtmlTextWriter writer)
{
RenderChildren(writer);
}
}
And the usage thereof looks like this:
<wf:wfWindow runat="server">This content should go where [x] is.</wf:wfWindow>
I'm no ASP.NET pro, so how do I get the content to render exactly where the [x] appears in my user control?
RenderChildren is rendering my content, but it is only appended to the end of the UserControl output. I need it to go and sit right where [x] marks the spot.
URL....This link shows a demo that let user to put origin and destination then get direction. I want to know how to add a option which is let user to use their current location as origin location (Location from).
View 1 RepliesI have a table in my database, in which a certain field holds the locations of text or doc files (the files are of a transcript for a chat session).
In the Gridview right now i able to show the link locations. But i want to have Hyperlink or Button in the links location in the Transcript Location fields.And on the click of which the txt or doc file opens up in notepad or microsoft word.
Does anyone know how this is possible? I can retrieve the file, but I cannot figure out or find anywhere online how to prompt the user where he/she wants to download the file to.
View 2 RepliesI want to create an asp.net application which allow user to specify text file path and create a text file on the specified location by doing some processing from the sql server database.for specifying path of the txt file i am using setting
.xmlsetting.xml
<TextFilePath> "D:Text" <TextFilePath> //as specified by the user.
The code is working fine if it is not published Once the application is uploaded on the server(published) and run under the virtual directory.
I used Ajax collapsible extenders (1 to 9) with formviews in each of them on a web form.
They are all collapsed by default. If the user enters data in collapsible 5 formview and submits data, the page refreshes back to the top of the page (where the collapsible 1 is positioned). I would like the focus to stay in the region the user is working (even after insert/submit operations). How can I do this.
I want to capture user ip address but some reason i am getting different values:
method 1:
Dim strHostName As String = System.Net.Dns.GetHostName()
Dim clientIPAddress As String = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString()
method 2:
Dim k As String = Request.ServerVariables("remote_addr")