Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










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


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.


View 1 Replies (Posted: Oct 21 10 at 1:22)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Maps Based On Longitude & Latitude - Google Maps Or Bing Maps?
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.

Posted: Jan 07, 2011 04:06 PM

View 3 Replies!   View Related
Javascript - Developing Application, Use Google Maps Or Bing Maps?
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?

Posted: Feb 17 at 18:29

View 2 Replies!   View Related
With Google Maps, Can Use Google's Own Popup Windows
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 maps.google.co.uk 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.

Posted: Jan 11 at 15:50

View 1 Replies!   View Related
Javascript - Google Map Dragging Like In Maps.google.com?
just want to add the effect of map momentum by the dragging of map as in maps.google.com has. currently on my map where i stop dragging the map stops there but in maps.google.com 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.

Posted: Aug 22 10 at 17:05

View 1 Replies!   View Related
Dynamic Control And OnClick Event On PostBack?
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();
btn.ID="unit_1";

[code]...

Posted: Jan 13, 2010 11:13 PM

View 3 Replies!   View Related
Web Forms :: Button Onclick Event Not Firing After Postback?
I have an asp.net 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",
"javascript:alert(""hey"");")

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

Posted: Sep 24, 2009 10:48 AM

View 2 Replies!   View Related
Web Forms :: Attributes.Add() Onclick Event Disappearing After Postback?
- 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:

[Code]....

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:

[Code]....

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.

Posted: Mar 29, 2010 08:27 PM

View 3 Replies!   View Related
Web Forms :: Button Onclick Event Only Triggers Postback On The First Click?
I havecreated a user control which has a formand2 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 whichdoes some server-side processing to create an'Item'then clears the form.

The buttons:

[Code]....

[Code]....

And a placeholder to add dynamically created controls:

[Code]....

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

[Code]....

[Code]....

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.

Posted: Nov 11, 2010 04:57 AM

View 3 Replies!   View Related
Trying To Get Google Maps Example Working
Trying to run the sample code here:

[URL]

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.

[code]....

Posted: Dec 06, 2009 03:18 AM

View 6 Replies!   View Related
Google Maps Fucntionality?
i select country in dropdown and then city in city dropdownthen the map should show that city selected with zoom

Posted: Nov 11, 2008 08:34 AM

View 1 Replies!   View Related
Web Forms :: Google Maps Api?
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...

Posted: Apr 21, 2010 06:52 PM

View 3 Replies!   View Related
How To Include Google Maps
Can anyone tell how to include, save and use the google maps in asp.net applications??

Posted: Jul 06, 2010 07:31 PM

View 5 Replies!   View Related
How To Use Google Maps Without API Keys
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?

Posted: Feb 2 10 at 19:31

View 4 Replies!   View Related
Google Maps Recieve/Respond App
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?

Posted: Dec 18, 2008 09:38 AM

View 1 Replies!   View Related
Getting User Input From Google Maps?
If you map a google maps application and want to store every location the user clicks on, how can you store that data in vb.net/asp.net 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).

Posted: May 22, 2010, 01:48

View 7 Replies!   View Related
Newbie, Trying To Add Google Maps To Site?
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:
[URL]

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?

Posted: Nov 13, 2009 12:54 AM

View 5 Replies!   View Related
Calculate Distances Using Google Maps?
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.

Posted: Nov 15 10 at 9:39

View 1 Replies!   View Related
C# - Put A .net Control In A Google Maps InfoWindow?
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).

<html>
<head>
<title>
title here
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

[Code]....

Posted: Dec 20 10 at 17:31

View 1 Replies!   View Related
Getting JS Data Back In VB - Google Maps API?
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 http://an-it-solution.blogspot.com/2008/12/use-google-maps-in-aspnet-c.html# 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?

Posted: Jan 02, 2009 09:14 PM

View 3 Replies!   View Related
C# - Stop Setting Onclick Event For LinkButton If No OnClick Event Was Explicitly Defined?
How do I setup a default setting so that if I do not set an OnClick (i.e the asp.net OnClick attribute) explicitly for an asp:LinkButton tag, it will not render an onclick(html attribute for javascript) attribute client side? By default, asp.net 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 asp.net 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)

Posted: Feb 25 10 at 3:07

View 2 Replies!   View Related
Web Forms :: Implementing Google Maps In Website?
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?

Posted: Sep 25, 2009 08:09 PM

View 7 Replies!   View Related
Make Google Maps API Get Restaurants In Specified Area
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.

Posted: Jul 7 10 at 12:16

View 1 Replies!   View Related
Web Forms :: Google Maps Subgurim Control?
Im having a problem with the google maps subgurim.net control. Im trying to put polylines on the mapsbut im getting an error.This is the code:

protected void Page_Load(object sender,
EventArgs e)
{

[code]...

Posted: Feb 27, 2008 07:14 PM

View 1 Replies!   View Related
C# - Post Message To A Place Using Google Maps?
Is it possible to post a message to a place indicated by a user using Google Maps API ? I'm using ASP.NET/C#.

Posted: Aug 3 10 at 8:59

View 1 Replies!   View Related
Using Google Maps In Real Estate Project?
iam 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 thenit shows this property marks in google map

just done by a developer in website [URL]

Posted: Apr 23, 2010 07:31 AM

View 1 Replies!   View Related
Web Forms :: Calculate Distances Using Google Maps?
I am creating a business directory website which has street addresses storedin 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.

Posted: Nov 15, 2010 09:17 AM

View 1 Replies!   View Related
C# - Mobile Location Tracking On Google Maps?
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. http://wwwa.way2sms.com/jsp/LocateMobile.jspI 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 ?

Posted: Apr 27 10 at 8:03

View 2 Replies!   View Related
C# - Define A Region In Google Maps Jquery Plug In?
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.

Posted: Feb 9 10 at 12:02

View 1 Replies!   View Related
Forms Data Controls :: Gridview Associated With Google Maps?
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.

Posted: Mar 29, 2011 07:35 AM

View 1 Replies!   View Related
Forms Data Controls :: Google Maps API With Gridview?
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?

Posted: Dec 02, 2010 01:31 PM

View 2 Replies!   View Related
Javascript - Google Maps API In .NET Masterpage: Why It Stays Blank ?
This simple example works in pure html when launching within visual studio localhost:port server

<!DOCTYPE html>
<html>
<head>[code]....

Posted: Oct 9 10 at 20:34

View 1 Replies!   View Related
Web Forms :: Using Database Values To Create Static Google Maps?
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.

Posted: Feb 25, 2011 11:55 AM

View 2 Replies!   View Related
How To Increase Speed For Loading Of Google Maps Embedded On Site
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?

Posted: Feb 3 10 at 17:24

View 3 Replies!   View Related
Javascript - Show Google Maps And Street View In The Same Time?
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.

Posted: Dec 1 10 at 17:30

View 1 Replies!   View Related
DataSource Controls :: Pull Google Maps Date From SQL Database?
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 pullingthe mapinformation 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 runa query and use the data, or will I need to run the query and somehow have it write/update my .xml file for me?

Posted: May 27, 2010 05:31 PM

View 4 Replies!   View Related
SQL Server :: Missing Code To Get Data From Database For Google Maps?
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

[Code]....

Posted: Jul 20, 2010 08:26 PM

View 1 Replies!   View Related
Fetch Latitude Longitude By Passing Postcodes To Maps.google.com Using Javascript
I have Postcode in my large database, which contains values like SL5 9JH, LU1 3TQ etc. Now when I am pasting above postcode to maps.google.com it's pointing to a perfect location.. My requirement is like I want to pass post codes to maps.google.com 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

Posted: Apr 12 10 at 12:02

View 3 Replies!   View Related
AJAX :: Google Maps Marker Show Popup From Server Side?
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.

Posted: Apr 21, 2010 03:32 PM

View 5 Replies!   View Related
AJAX :: Dispalying Infowindow As In Google Maps On Selection Of Dropdownlist Dynamic Data In It?
like to display infowindow as it is in google maps on selection of Dropdownlist with data dynamically binded using VB.net can anybody provide me the code.

Posted: Mar 06, 2011 02:30 PM

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved