Google Maps Onclick Event To Cause Partial Postback Of Page C#?

Oct 21 10 at 1:22

I have used jQuery to invoke an AJAX webmethod in c#. This webmethod runs a query and stores the resulting information in a session variable. I have a gridview that has an objectdatasource that uses the session variable with the selectmethod to then populate the gridview with data from a query. I need the final piece to get the gridview to databind() again with the new value.

So click map, update gridview. However, maybe I'm going about this all wrong. In essence, take javascript variable, push to ASP.NET in C# and refresh gridview on page with new data from query.


Maps Based On Longitude & Latitude - Google Maps Or Bing Maps?

Jan 07, 2011 04:06 PM

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 View Related

Javascript - Developing Application, Use Google Maps Or Bing Maps?

Feb 17 at 18:29

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 View Related

With Google Maps, Can Use Google's Own Popup Windows

Jan 11 at 15:50

I've implemented a google map with points and stuff that uses an address that the user inputs. When you click a point, the popup bubble appears with the name and address in.Often this name and address is a prominent location, as it's used for meetings and things, such as a university. If you google the address yourself on then you get google's own popup bubble, which often has a photo, information, opening hours, links to directions, reviews, etc. etc.I am wondering if there's a way to use that popup dialog instead of my own, where it is available. I can't see anything in the API to do this.I'm using V2 as we support IE6 in a lot of our users, but I've been told recently I can upgrade to V3 should I need functionality from it.

View 1 Replies View Related

Javascript - Google Map Dragging Like In

Aug 22 10 at 17:05

just want to add the effect of map momentum by the dragging of map as in has. currently on my map where i stop dragging the map stops there but in if you drag a mouse the map will not stop there it will continue the movement in the same direction for a second or few cordinates (i dont know basically), but I want the same thing on my google map. I am using GMap2.

View 1 Replies View Related

Dynamic Control And OnClick Event On PostBack?

Jan 13, 2010 11:13 PM

I know this topic has been posted before but I'm stuck on it still.I've placed creating of dynamic control on Page_Load but the event isn't firing.On my asp page, i have <asp:PlaceHolder ID="test" runat="server/>On my code behind, I have private display method.

private void DisplayButton() {
LinkButton btn = new LinkButton();


View 3 Replies View Related

Web Forms :: Button Onclick Event Not Firing After Postback?

Sep 24, 2009 10:48 AM

I have an button to which I am adding onclick as an attribute from code behind like this

CType(fvBasicDetails.Row.Cells(0).FindControl("btnUpdate"), Button).Attributes.Add("onclick",

This javascript fires when clicked on the button after page loads for the first time BUT never works after the post back!

View 2 Replies View Related

Web Forms :: Attributes.Add() Onclick Event Disappearing After Postback?

Mar 29, 2010 08:27 PM

- I've created a Survey with multiple sections in it

- The answer types are variable and, thus, the controls are created dynamically

- I have a Repeater where each RepeaterItem corresponds to a Category. (I have 5 categories in my current test, so I have 5 DataItems in the Repeater) Each RepeaterItem contains another Repeater which will hold the Question / Answer values

- After I data bind the Category Repeater, I loop through each RepeaterItem, find the Repeater contained in each RepeaterItem, and DataBind() this second Repeater to a list of Questions

- After DataBinding the Repeater containing the Questions, I sent that Repeater object to another routine, which is where the Answer controls are dynamically created and added to a Panel inside each of this Repeater's RepeaterItems.

I am able to navigate back-and-forth among Categories, save / delete answers, and fill in answers for Surveys that were left incomplete when a user logs back in.

One of the the potential control types for an answer is a ComboBoxList.

Each Question has an option for answers that require a ComboBoxList called "MaxAnswers." When this value > 0, I inject a little javascript that prevents the user from selecting more boxes than the "MaxAnswers" value. This is done during the last step described above like so:


This appears to always be added regardless of how many questions I answer or don't answer or how many times or directions I navigate around inside the survey. (I can push "Back" and "Previous" buttons as well as jump directly to any individual category by clicking a LinkButton)

Another option for Questions requiring a CheckBoxList is to specify if the selection of a specific ListItem within the CheckBoxList should display a TextBox. (e.g. a selection of "Other" will display a TextBox for the user to write-in an answer) I want to prevent a post-back just to show/hide a TextBox, so I inject an onclick event attached to the specific ListItem to accomplish this. The following code appears as the very next routine following the code pasted above:


This also works the first time the page is loaded but not after any PostBacks...

The lblMessage.Text lines are written to the page after ever PostBack, the MaxAnswers routine correctly adds the onclick event to the necessary CheckBoxList controls, but the "fncShowFTB" event is not added. Viewing the HTML with Firebug does show the onclick the first time the page is loaded, but it's missing after every subsequent postback.

Can anyone see what I am doing wrong that causes me to lose this event?

The Firebug HTML on initial page load looks like:

<input type="checkbox" onclick="fncShowFTB(this,'FTB50');" name="dnn$ctr556$View$rptCategoryPanels$ctl02$rptQuestions$ctl11$ctl00$6" id="dnn_ctr556_View_rptCategoryPanels_ctl02_rptQuestions_ctl11_ctl00_6">

After PostBacks, it looks exactly the same except that the onlick event is missing.

View 3 Replies View Related

Web Forms :: Button Onclick Event Only Triggers Postback On The First Click?

Nov 11, 2010 04:57 AM

I have created a user control which has a form and 2 buttons; Save and Submit. Both buttons are created at design time. Users can enter details in the form (e.g. title and description of an item) and click Save which does some server-side processing to create an 'Item' then clears the form.

The buttons:



And a placeholder to add dynamically created controls:


I am saving the Items in ViewState and dynamically creating a LinkButton control for each Item which allows the user to edit the item:



Now, when I test this in Visual Studio 2010, it works fine;

1. Enter Item title and description in form

2. Click Save

3. Save button triggers postback and onClick event code is run

4. ViewState list is displayed below the form

When I create a local IIS web site for testing, the postback on the Save button only works the first time I click it. Postback is false on the second click and the page reloads without running the onClick event code.

View 3 Replies View Related

Trying To Get Google Maps Example Working

Dec 06, 2009 03:18 AM

Trying to run the sample code here:


Download source - 288kb

I get this error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. review the following specific error details and modify your source code appropriately.


View 6 Replies View Related

Google Maps Fucntionality?

Nov 11, 2008 08:34 AM

i select country in dropdown and then city in city dropdownthen the map should show that city selected with zoom

View 1 Replies View Related

Web Forms :: Google Maps Api?

Apr 21, 2010 06:52 PM

am working on google maps api to store the latittude and longitude into the MS Access Database..I want to add the markers to the particular locations and store it onto the database...

View 3 Replies View Related

How To Include Google Maps

Jul 06, 2010 07:31 PM

Can anyone tell how to include, save and use the google maps in applications??

View 5 Replies View Related

How To Use Google Maps Without API Keys

Feb 2 10 at 19:31

I am developing a cms that will use more than one domain and i have to use only one google map script in my page. Is there a way to use google maps without api key? Otherwise it's not working?

View 4 Replies View Related

Google Maps Recieve/Respond App

Dec 18, 2008 09:38 AM

I'm currently writing a Google Maps application in .htm and want to create a ASP.Net service to treat requests for pins(data) from my DB. I'm not sure how to go about this and have found it tough to find any articles that aren't in PHP or Ruby. Can anyone give me some starters?

View 1 Replies View Related

Getting User Input From Google Maps?

May 22, 2010, 01:48

If you map a google maps application and want to store every location the user clicks on, how can you store that data in in a collection, with the intention of putting it in a database later.

I'm pretty sure I know how to store it in javascript, perhaps with an array, but I'm unsure of how to transfer that into the application (Without sticking it in visible text that the user sees or adding it to a form).

View 7 Replies View Related

Newbie, Trying To Add Google Maps To Site?

Nov 13, 2009 12:54 AM

I am trying to figure out how to set up Google Maps for my site. I just signed up for Google maps and received a Google Maps API Key. I am in the very beginning stages of this. I've been using ASP.NET (ver 3.5) for about 6 months and SQL Server (2008) for the same amount of time. I've read several books on both ASP.NET and SQL Server, but really I'm pretty new to this stuff. Before this, I have been programming in VBA for about 6 years (doesn't help much in .NET-world).

Here is a link to my site:

I am planning to add Google Maps so a user can click on an address for a pub (in New York City) and see the location in a map. Or, perhaps click several locations and see all on a map. How hard, or how easy, is it to do these things? How do I get started? What do I need to do?

View 5 Replies View Related

Calculate Distances Using Google Maps?

Nov 15 10 at 9:39

I am creating a business directory website which has street addresses stored in the database. I would like to calculate the distance from a given zipcode to the street address using google maps in ASP.Net. I don't even know where to begin.

View 1 Replies View Related

C# - Put A .net Control In A Google Maps InfoWindow?

Dec 20 10 at 17:31

I used it as my POC and created a .net project from the concept. I now have markers and infoWindows being populated from the database which is pretty cool.

My problem is I want to add InfoWindows in a slick way (not only to the map, but also save to the db). Instead of having .net controls outside of the map window I want to be able to add info to the map directly. If the user clicks in the map I would like to be able to add a marker and InfoWindow with asp controls in the window (textbox and button).

title here
<script type="text/javascript" src=""></script>


View 1 Replies View Related

Getting JS Data Back In VB - Google Maps API?

Jan 02, 2009 09:14 PM

I'm using the Google API, which is accessed via Javascript.

For a given zip code, I'm getting the lat/long values.

I wanted to use this in a web service, but since I have to access it via JS, it won't work directly in the web service.

What I did was created a .aspx file that accepts a location parameter, which gets fed in to the onload Javascript event.

When I run this, getlatlong.aspx?location=90033, manually, I get an output.

When I call the page from my web service via WebRequest, there is no output. The idea was to parse the page output for lat/long.

I realize that JS is executed on the browser, so that makes sense. However, a while back a fellow programmer wrote a website spider where he was able to add the browser type to it. Using this format, I don't think this would still execute the JS, but I'd like to find a way to get this working.

So how do I create a VB Javascript wrapper, so I can get these values back from JS in some code-behind?

In short, what I need is to be able to call JS functions from the code-behind, and get the results in the code-behind.

I've already seen the C# libraries, and seems decent, but I don't need the full functionality of the C# library, and don't need to rewrite the whole thing.

On the other hand, can I import the DLL and just use that in my code for getting lat/long?

View 3 Replies View Related

C# - Stop Setting Onclick Event For LinkButton If No OnClick Event Was Explicitly Defined?

Feb 25 10 at 3:07

How do I setup a default setting so that if I do not set an OnClick (i.e the OnClick attribute) explicitly for an asp:LinkButton tag, it will not render an onclick(html attribute for javascript) attribute client side? By default, adds an onclick='doPostBack....' for the LinkButton.

Case for use:

There is a LinkButton tag on the page. For this page, if the user has one friend, I only want to run client side code if the button is clicked and would not for any reason want to make a post back. If the user has more than one friend I would want a click to trigger a postback.

Using any Ajaxtoolkit

Dynamically switching the control type (i.e. if friends == 1 use a asp:Hyperlink)

-I want to avoid this because it is not scalable. There might be many cases where I want an asp:Link tag to do a postback or to not do a postback depending on the user context or user attributes Using OnClientClick (I am using jQuery would like to avoid this)

View 2 Replies View Related

Web Forms :: Implementing Google Maps In Website?

Sep 25, 2009 08:09 PM

I've been asked to implement Google Map into an existing ASP.NET 3.5 website.In addition to implementing the map they also wants locations to be stored in their existing database - so the website can display locations stored in the database. For example having restaturants in a town on the map

Now I wonder how to implement this. Is there a ASP.NET control I should use or should I do what Google says in it's tutorials?

View 7 Replies View Related

Make Google Maps API Get Restaurants In Specified Area

Jul 7 10 at 12:16

So far I use [URL] to get the longitude and lattitude of some address.

function load()
if (GBrowserIsCompatible())
map = new GMap2(document.getElementById('"mapHolderID');
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(lattitude,longitude), 15);
var point=new GLatLng(lattitudelongitude);
map.addOverlay(new GMarker(point);

So if user enters Downtown it would take the user to downtown. Now what I want is that if user searches for downtown resturants search result should point to downtown as well as list all the resturants in downtown.

View 1 Replies View Related

Web Forms :: Google Maps Subgurim Control?

Feb 27, 2008 07:14 PM

Im having a problem with the google maps control. Im trying to put polylines on the maps but im getting an error.This is the code:

protected void Page_Load(object sender,
EventArgs e)


View 1 Replies View Related

C# - Post Message To A Place Using Google Maps?

Aug 3 10 at 8:59

Is it possible to post a message to a place indicated by a user using Google Maps API ? I'm using ASP.NET/C#.

View 1 Replies View Related

Using Google Maps In Real Estate Project?

Apr 23, 2010 07:31 AM

i am developing real stat project i want that user add their property,mark their property in google map then these mark are stroe in sql database

and when other user search this property then it shows this property marks in google map

just done by a developer in website [URL]

View 1 Replies View Related

Web Forms :: Calculate Distances Using Google Maps?

Nov 15, 2010 09:17 AM

I am creating a business directory website which has street addresses stored in the database. I would like to calculate the distance from a given zipcode to the street address using google maps in ASP.Net.I don't even know where to begin.

View 1 Replies View Related

C# - Mobile Location Tracking On Google Maps?

Apr 27 10 at 8:03

I need to develop a feature for one of my website by which user can track any mobile number on Google maps just like the link below.Go o the following link and enter the 9810098109 number in textbox to find its location on map. want to know either this page is using a third party tool to get the latitude and longitude along with service provider and draw the map accordingly or its some sort of feature provided by Google ?

View 2 Replies View Related

C# - Define A Region In Google Maps Jquery Plug In?

Feb 9 10 at 12:02

i put this plug in into my website, how i do define a region and restrict visitors to can not going out of ?

I don't have access [URL] for political reasons.

View 1 Replies View Related

Forms Data Controls :: Gridview Associated With Google Maps?

Mar 29, 2011 07:35 AM

In my web page displaying the list of products with address (store location) and hyper link say 'map' in gridview. Beside gridview there is one google map embedded in div. when ever user clicks on 'map' hyper link in girdview the corresponding location should show in popup in google maps. In my database i have only complete address for the each products.

View 1 Replies View Related

Forms Data Controls :: Google Maps API With Gridview?

Dec 02, 2010 01:31 PM

I am attempting to create an ASP.NET website that incorporates Google Maps to geocode the location of bus stops that the user selects from a gridview that is bound to a SQL database. Any ideas on how to use a buttonfield to pass the address (text) for a given row to a command that will geocode that address and place a marker on the map?

View 2 Replies View Related

Javascript - Google Maps API In .NET Masterpage: Why It Stays Blank ?

Oct 9 10 at 20:34

This simple example works in pure html when launching within visual studio localhost:port server

<!DOCTYPE html>

View 1 Replies View Related

Web Forms :: Using Database Values To Create Static Google Maps?

Feb 25, 2011 11:55 AM

I was looking for a solution on how to create a static google map by passing longitude and latitude value through database. What I want to do is to create a static image as PDF conversion requires static image. Thats why I want a static image so that I can convert aspx page into pdf and then email that map to the customer.

View 2 Replies View Related

How To Increase Speed For Loading Of Google Maps Embedded On Site

Feb 3 10 at 17:24

Are there any javascripts or other method which can decrease loading time of google maps? Google maps are added by iframe code.

Update: 12 FEB 2010

Can any jquery plugin be useful for me?

View 3 Replies View Related

Javascript - Show Google Maps And Street View In The Same Time?

Dec 1 10 at 17:30

I want to show google maps and street view and have a relation between them so that if the user moved in the map the street view will refresh, something like this [URL] but without the birds eye.

View 1 Replies View Related

DataSource Controls :: Pull Google Maps Date From SQL Database?

May 27, 2010 05:31 PM

On a test page, I successfully created a google map that pulls both marker and infoWindow information from an XML file. I did this just to get a feel for working with the API. It works fine. However, I do have a SQL database that has this information in it already. This database is updated behind the scenes regulary via a webservice.

I would like to try pulling the map information from my SQL database instead so I don't have to hand maintain the .xml file. The dabase alread has the lat/long information needed for markers. What is the easiest way for me to get that data from the SQL database? Is there a way to run a query and use the data, or will I need to run the query and somehow have it write/update my .xml file for me?

View 4 Replies View Related

SQL Server :: Missing Code To Get Data From Database For Google Maps?

Jul 20, 2010 08:26 PM

figure out the missing codes to get data from database and plot the latest 10 entries to database on the map.

this is the coding i came up with so far


View 1 Replies View Related

Fetch Latitude Longitude By Passing Postcodes To Using Javascript

Apr 12 10 at 12:02

I have Postcode in my large database, which contains values like SL5 9JH, LU1 3TQ etc. Now when I am pasting above postcode to it's pointing to a perfect location.. My requirement is like I want to pass post codes to and it should return a related latitude and longitude of that pointed location, that I want to store in my database. So, most probably there should be some javascript for that If anybody have another idea regarding that please provide it

View 3 Replies View Related

AJAX :: Google Maps Marker Show Popup From Server Side?

Apr 21, 2010 03:32 PM

I'm using google maps in my site with markers.

When a marker is clicked, I'd like to display a popup.

this is easy, my problem is that the popup needs to be updated from the database before and the popup has some links that should be inside an UpdatePanel to avoid refresh.

I can use the marker function to display a popup (with a given html) how to get the html with the updatepanel .

I thougt about using the ajax popup control but I don't know how to position it on the marker.

View 5 Replies View Related

AJAX :: Dispalying Infowindow As In Google Maps On Selection Of Dropdownlist Dynamic Data In It?

Mar 06, 2011 02:30 PM

like to display infowindow as it is in google maps on selection of Dropdownlist with data dynamically binded using can anybody provide me the code.

View 1 Replies View Related

Copyrights 2005-14, All rights reserved