C# - Convert IP Address To GeoLocation Using Razor Systax Or Bing Map?
Jan 29, 2011I build the ASP.Net (.cshtml) site, and I need to get current location of user to show in Bing Map. How can I do this feature?
View 2 RepliesI build the ASP.Net (.cshtml) site, and I need to get current location of user to show in Bing Map. How can I do this feature?
View 2 RepliesHow to find geolocation details based on IP Address for visitor details?
View 2 RepliesRecord Current Geographic Location and Display in Web using asp.net c# ....
like as :
Refer this link [URL]..
How to display Bing map dynamically in an ASP.NET website based on the address provided. I do not have latitude and longitude for the address so I have to pass address directly and display the map.
View 1 RepliesI am trying to use the Bing Maps Ajax Control to plot pins of locations stored in a database to the bing map on a web page. All the locations are geocoded and the lat longs stored in the database. I am using ASP.NET (C#), but can't figure out or find any tutorials on how to go about doing this. All I can find are articles on how to import shapes into a map from either GeoRSS, Bing Maps, and KML.
I have used (and paid for ;o) the excellent control from Simplovations to do alot of what I need to do, namely working with my data as normal in the code behind, getting a DataSet of my locations and plotting the points to the map. It has been great, but I want to know how to do it with out using a third party control. My main reason for wanting this is to be able to cluster my pins and hopefully learn a bit of Javascript along the way. Does anyone know how to do this or can point me to any tutorials or articles online that can help me on my way. I have been searching the net for days now and can't find anything :(
How would I retrieve IP address with Razor? I have tried @Request.UserHostAddress and it returned ::1 to me instead of an IP adress. I am running this of course under IIS8 that came with webmatrix.
View 3 RepliesHow convert a project created in asp.net MVC to Asp.Net MVC Razor?
View 2 RepliesHow to i convert the data type in the address field? i keep getting an error
here is my code:
[Code]....
how to use google geolocation api ?
View 3 RepliesFor reporting we used report RDLCs and displayed using an ASPX form. We implemented using the route as shown below. This resulted in forcing us to use the page route below and also to use the hyperlink instead of the normal Action Link. The question is how do we convert the asp:hyperlink ASPX syntax to Razor syntax.
//Custom route for reports routes.MapPageRoute( "ReportRoute", // Route name "Reports/{reportname}", // URL "~/Reports/{reportname}.aspx" // File );
<li><asp:HyperLink ID="hypReport" runat="server" NavigateUrl="<%$RouteUrl:routename=ReportRoute,reportname=StaffRpt%>">Staff Report</asp:HyperLink></li>
How can I get a user's geolocation information (City and Country - internet service provider and internet speed would also be great) based on their IP address?
I've searched and found several tools for doing this but I seem to run into problems using them with asp.net mvc. Many of them relate to using json and the "security risk" involved in cross domain ajax calls.
I am getting location by latitude and longitude from geolocation but location is not showing, If I pass latitude and longitude manually than its working good where is error in my code plz check my code.
<form id="form1" runat="server">
<script src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
[Code] .....
Does Bing has an option similar to Google Custom Search or Yahoo where I can use Bing to power the search results on my site?
Couple requirements:
Works with an ASP.NET site (is a .NET project) Host the search box and results on my own website Ability to customize the look and feel of the results to match my site (Full control is ideal but I understand it's not possible with free solutions)
I did a search for Bing custom search and found this: [URL] but it's not exactly what I am looking for.
I am starting to working with one interesting project.i have idea to make web application , how to integrate bing maps into my web application?
i mean I want a map of my city and then i want to mark some things on that map like... check points, mark a school or mark a restaurant....
Well while I am creating solution for this, Maybe I shouldn't do it with asp.net mvc but I make my decision that it is the handy way to make it.
I'm trying to find the best way to implement Bing maps into my ASP.NET MVC2 web application.
I came accross MvcMaps Preview1 on Codeplex but it doesn't work good, at least for me. Maybe that's because it's for .NET 3.5 and VS2008, I don't know.
I'd like to avoid Silverlight. what should I use and what's the easiest way to get a Bing Map show some data on it?
i want develop a store locator. i want get the data (get all stores from a given zip code and radius) from my own wcf service. he gets his data from my own sqlserver 2008.how exactly did i wrote the sql queries to get the stores in my radius?after that how i did it use (the geo codes) with bing mapsare there samples with current technics to realize a store locator?
View 3 Repliesis it possible to use Bing Maps or Google Maps (or any other) and mark countries on a world map? I have some countries in SQL DB depending on the logged in user, e.g. France, Mexico, Australia, Japan. These countries should be mark on a world map. Is this possible?
View 2 RepliesIs there anyway you can get search results powered by bing, without using bing box as it just launches results in a javascript applet, I mean fully hosted on site like on here or microsoft's site? I understand a full sitemap will be needed although that easy enough using webmaster tools. I think that all the detail I need to provide, as I dont want too use Google custom search as I have to display ads and crap via adsense.
View 2 RepliesIn my Bing Ajax Map app the user is presented with a list of locations they can choose from. OnRowClick the map center and zooms on that places location. After it has focused on that location, it shows the info window for it as well.
The problem is that the info window seems to be loading before the map has finished panning. This causes the info window to appear in the wrong spot, or not at all. For now I've put the show info method in a setTimeout tag to give it another second before loading the information, but its a fairly ugly hack and still doesn't work 100% of the time.
using the bing map API, can I make a server-side call and get lat/long for a given city? I can do it on the client side using JavaScript, but I need something more robust in this case and want to use the server side.
View 1 RepliesI have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.
However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).
The WCF test page looks like this:
MyService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
[URL]
The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.
In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?
I am trying to pull entries from a database based on the current users IP Address. Here is what I have so far:
[Code]....
I am receiving the following error: Cannot find either column "Request" or the user-defined function or aggregate "Request.UserHostAddress.ToString", or the name is ambiguous.
Is it possible to do this? Should I try to access this information another way?
Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?
View 1 RepliesI need to use a map in an application that I develop. In my application I want to use pins that will show infoboxes on the map. Use the zoom in, zoom out functionality and the ability to show several maps on the same page. I won't need to use the search locations or routing directions.Which type of maps should I use? Google or Bing? As I understand, they both have good user interface, but which one is easier to develop with? If I'll use Bing then will it be more Microsoft like, I mean, it will let me use visual studio convenient programming? More or less javascript so it will be a hassle do debug it?
View 2 RepliesHow do I obtain the IP address or MAC address or some Unique ID of a device within a mobile app, either client or server side?
We are developing a web application targeting iPhone, BlackBerry and Android, generally device independent, and we are looking for ways to uniquely identify a device for added authentication purpose. Is there a way to uniquely identify a mobile device, regardless of the make and model?