C# - Bing Maps In An MVC2 Web Application?
Mar 22, 2011
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?
View 2 Replies
Similar Messages:
Mar 16, 2010
I 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 :(
View 2 Replies
Feb 17, 2011
I 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 Replies
Jan 7, 2011
I need your advice to use Google Maps or Bing Maps with my form ASP.NET, and I wanaa the location based on Longitude & Latitude NOT by address.
View 3 Replies
Mar 2, 2010
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.
View 7 Replies
Mar 1, 2011
how can i connect mySql to my mvc application
i need a tutorial and all steps to connect to mySQL
View 1 Replies
Mar 17, 2010
I've successfully upgraded an web application from MVC1 to MVC2 but was wondering why the Binding redirect is required.I started have troubles with rendering views when it was removed ( strongly typed views switched model type to object ), despite have no more references to the original system.web.mvc in any project
View 8 Replies
Feb 10, 2011
am trying to create view form in my MVC2 applicationIn this i have a submit button which is an imagebut when i try to run it shows a normal windows button the image is not shown(the image is a round edged).the code is as below:
<input type="submit" value="Log On" id="login_button_75" />
#login_button_75 {
background:url(images/login_submit_button.png) no-repeat;
height:28px;
width:75px;
background-position:center;
View 6 Replies
Feb 18, 2011
The toolbox says there is no usable control in this group?
I have to create a textbox in asp.net mvc2 web application?
View 1 Replies
Dec 27, 2010
I am using telerik grid in mvc2 application. I have to perform Watin UI test for my application. For that i need to select a row from the telerik grid. I was not able to select id for the telerik grid as the telerik grid doesn't have any id. can u please help me to select the particular row from the grid. I have 6 columns in the grid. Based on the value of a row in the column(should iterate though the column) i need to select the id of that row and hit on the select button of that row.
View 1 Replies
Apr 2, 2011
I need to create a Web Setup project for an MVC2 application I made at home, since I have VS 2010 there and I need to show people at the office, who have VS 2008 + sp1 + MVC2.
View 3 Replies
Sep 9, 2010
I have an application developed on MVC2 but I need it to change from HTTP to HTTPS after authentication. How do I manage that and where do I have to put the code?
View 1 Replies
Sep 24, 2010
I need to put a Flash Object in my website developed on MVC2 .NET, however the third party who made it just gave me an html with this code.HTML errors apart I don't know how to put it on ASP.NET.
<table width="608" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td height="412">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="runtime" width="608" height="412" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="runtime.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="Runtime_settingPath=modules/main/setting.xml&Runtime_isRemote=false&Runtime_init_module=module1&Runtime_init_scene=scene1.swf" />
<EMBED src="runtime.swf" FlashVars="Runtime_settingPath=modules/main/setting.xml&Runtime_isRemote=false&Runtime_init_module=module1&Runtime_init_scene=scene1.swf" quality=high bgcolor=#CCCCCC WIDTH="608" HEIGHT="412" NAME="runtime" swLiveConnect="true" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
</td>
</tr>
</table>
View 4 Replies
Sep 15, 2010
I'm developing a MVC2 application and using Forms Authentication on it. The scripts, images and styles are all blocked to unlogged users and, consequently, the login page looks awful. It works well local, the problem is when I publish to the server. Does anyone has any idea WHY? The server IIS is version 7.5
<configuration>
<system.web>
<globalization culture="pt-BR" uiCulture="pt-BR" />
<httpRuntime requestValidationMode="2.0"/>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<pages>
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="Admin.Models" />
</namespaces>
</pages>
<authentication mode="Forms">
<forms name="AGAuth" loginUrl="~/Home/Login" timeout="120" />
</authentication>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<connectionStrings>
<add name="DBContainer" connectionString="metadata=res://*/Database.DB.csdl|res://*/Database.DB.ssdl|res://*/Database.DB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=thewebserver.com,5158;Initial Catalog=thedatabase;Persist Security Info=True;User ID=theuser;Password=thepassword;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>
View 9 Replies
Jul 10, 2010
I have made subdirectory [URL]. and user control is loaded at runtime. But there is this error The virtual path '/theme/miragetheme/user-controls/display-userblog.ascx' maps to another application, which is not allowed.
View 1 Replies
Jun 1, 2010
I created a web application using visual studio 2010 / MVC2 / MSSQL 2008 and it runs fine in my laptop. However when I run the application in the hosting provider it shows the error message below:
Compiler Error Message:
CS0308
The hosting provider is [URL] and the link to my web application is [URL] I would like to know how to solve this issue? If anyone know PLEASE let me know how to troubleshoot / fix this issue. Also in case the problem is on the hosting provider, let me know if you know of a free or very affordable hosting provider with support for MVC 2 and MSSQL 2008.
View 2 Replies
Oct 27, 2010
OK, I'm sorry if the tile of the question was unclear, and if you understand what I mean, please don't hesitate to help me think of a better one.
Anyway, I have a <input type="submit"> element for my form, and I want it to return the same URL as the URL of the page the element is on.
Currently, if I click the button, it takes me from /Calculate/Quadratic to /Calculate/QuadraticForm
In my controller for this view, I have the following code:
[AcceptVerbs(HttpVerbs.Get)]
public ViewResult Quadratic()
{
ViewData["Root1"] = "";
ViewData["Root2"] = "";
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ViewResult Quadratic(QuadCalc boss)
{
ViewData["Root1"] = x1;
ViewData["Root2"] = x2;
return View();
}
And here is the markup and code for my Quadratic view page, which includes the form which includes the submit button I've been referring to:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Quadratic</h2>
<% using(Html.BeginForm("QuadraticForm", "Calculate")) %>
<% { %>
<div>
a: <%= Html.TextBox("quadraticAValue") %>
<br />
b: <%= Html.TextBox("quadraticBValue") %>
<br />
c: <%= Html.TextBox("quadraticCValue") %>
<br />
<input type="submit" id="quadraticSubmitButton" value="Calculate!" />
<br />
<p><%= ViewData["Root1"] %></p>
<p><%= ViewData["Root2"] %></p>
</div>
<% } %>
</asp:Content>
Therefore, all I really want is to have the submit button return the same page, but the HTTP post will aid the application in passing new ViewData. Unless I'm interpreting this all wrong.
View 1 Replies
Oct 12, 2010
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 Replies
Jul 15, 2010
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.
View 2 Replies
Mar 1, 2011
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 Replies
Oct 20, 2010
is 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 Replies
Sep 9, 2010
I have created a ASP.NET MVC 2 application in VS2010. It runs in integrated development server fine. But when i deploy that in IIS it gives me "The Web server is configured to not list the contents of this directory." error. Anybody know what went wrong?? There is no default.aspx page when creating a MVC2 project in VS2010. is that the problem? I can assure the routes are configured correctly in global.aspx.
View 4 Replies
May 29, 2010
Is 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 Replies
Jan 29, 2011
I 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 Replies
Aug 3, 2010
In 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.
View 1 Replies