Shabdar.org
Webshabdar.org
Introduction PDF Print E-mail
Written by Shabdar   
Sunday, 23 November 2008 21:36

Shabdar.org is a common place for developers to discuss their day to day programming challenges. Share your knowledge and expertise with wide range of programmers. This website offers various open source projects.

Read articles and download sample codes. Our main focus is on Microsoft Technologies including ASP.Net, C#, VB, Microsoft Visual Studio, SQL Server. You may also find articles on other technologies including PHP and Google Maps APIs.

Use links on right side to view articles.

Feel free to ask questions in discussions below each article

Comments
Add New Search
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
Please input the anti-spam code that you can read in the image.
Ray Camrass  - Global Reach |144.136.112.xxx |2009-05-07 17:19:25
I found your GoogleMaps control on Code project and it is terrific. Very easy
to use and understandable.

However I want to retrieve a record based on the user clicking the Pushpin and I
noticed that there was no event for this in the GoogleMapForASPNet1 control -
the nearest would be OnPushPin moved.

How can I add a new event for OnPushPinClicked that would allow me to retrieve
the pin clicked and then retrieve the record for it from a SQL Server Database.

(I have tried
oogleMapForASPNet1.PushpinClicked += new
GoogleMapForASPNet.PushpinClickedHandler(OnPushpin Clicked);
in the page load event).

Appreciate any help you could give on this. Being able to retrieve records by
clicking on the map would make this very useful indeed.

Thanks a lot

Ray Camrass
Sydney Australia
Rakesh |192.55.54.xxx |2009-05-26 00:04:23
Why don't you create a section for Linux also.
xtechnotes  - cross link blogs? |60.241.170.xxx |2009-05-29 12:09:23
Hi

I saw you GMap section - great work.

I also maintain a technical blog. Would you like to put a link to my blog and I
will also link to your blog?

http://xtechnotes.blogspot.com

Cheers
Jim  - GoogleMapForASPNet1 |96.10.249.xxx |2009-06-25 04:26:45
I have been studying GoogleMapForASPNet1 code and it seems to be almost exactly
what I need. The only feature I need is Events. I would like to be able to
create an event handler such that when I "double-click" a push pin, I
can get that push pins data or GooglePoint (e.g. latitude,longitude,InfoHTML,
etc.)

Is there a way to do this using the current code? If not, is there another
google maps tool that is as easy to use and supports events like this?
abhijeet |59.181.102.xxx |2009-07-04 03:19:37
how to use ur SQL Server Database Backup Utility application for windows
authentication?
pantelis  - Problem with googlemaps control |213.249.50.xxx |2009-10-07 05:25:18
Your control is great !!! VERY helpful and easy !!!



I made a small app, that gathers points from an access database and show them on
the maps. The app works ok when I tried it local but when I put it in IIS and
get the common google api key (I have a site that uses dyndns service), it
returns that the key is rejected!!!



Any help is appreciated..... Thank you in advance.



Pantelis
Pat  - GoogleMaps Control inside |194.106.44.xxx |2009-10-20 12:00:00
Hi Shabdar,



Your control is really helpful I have found one issue when you try to display
the control in a table the actual map does not fill the entire googlemap
control



I have a table with 1 row & 1column and have placed the user control inside this
cell and i get the issue above. If i remove the table everything renders fine.



table is as normal



table

tr

td

googlemapscontrol

end tr

end td

end table





Simple Google Map



















Any ideas?



Pat



Antonio Mira  - App Developer |70.61.50.xxx |2009-10-20 16:49:42
Hi Shabtar,



Downloaded your code and it works fine when I add pages to the original project.
However, I created a separate project and followed the instructions. The page
comes up but there is no map (I'm just trying the single map). What am I
missing? Like I said, I added a page to the folder created when I downloaded the
zip file, and it works fine. I copied the web.config file into the new
application and made sure the version for the extensions was correct.



Thanks for any help that you can provide...



Antonio Mira
Jim  - Unsubscribe |66.162.199.xxx |2009-11-12 09:26:16
I need to unsubscribe to this posting but there is no link or way to do this
from the shabdar.org page.

How do I unsubscribe myself from this?
Peter James |75.158.104.xxx |2009-11-24 15:28:23
I have converted your code to VB.net and it works very well. I have also added
the ability to add pushpins and based on the pushpin selected to call another
page specific to the pin selected. When returning to the map the map is
centered on the pin at the same zoom level when the pin was selected. I am
trying to find an event that will give me the Map Type so that I can store it at
the time the pin is clicked. Then if the map type was Satellite it is restored
to Satellite when retuning to the map.



Is there such an event, or can you suggest an alternative?



Thanks



Peter James

Jeff  - Compile error - hideventname/value |24.73.60.xxx |2009-12-01 19:13:42
I am getting errors with the compilation of the lines hideventName and
hidEventValue - error is does not exist in context.

Any suggestions what I am doing wrong? I am desperate.
Rob Holmes  - VB version of Map Control |217.205.176.xxx |2010-08-24 10:16:11
Hi Peter - I am interested if you could send me your VFB version of the ASP.NET
Google Map Control? - I was about to start doing the conversion myself!



Hopefully you can help



Many thanks, :)



Rob.
jimj  - na |66.162.199.xxx |2009-11-24 15:38:14
unsubscribing to post
aqa  - your maps control |62.90.99.xxx |2010-01-10 10:36:38
I'm from Israel.

I enjoyed your article and the control and I want to use the control in my
project, but I can not because it does not contain a full Israel map.

why?

thanks.
ROSHAN  - REVERSE GEOCODE + INFOHTML |86.96.227.xxx |2010-01-11 01:49:06
I read ur article and it works well for me.Thanks a lot.

1) How can i get the lat and long. pts when clicking on the pushpins ?Now i get
the pts when clicking anywhere on the map.



2) How can I display the infoHTML text with reverse geocoder address with some
info. of the pushpin retrieved from the database.(Like Driver Info.Vehicle info.
).Now i get the address as alert in js.How can u use this address with my sql
database values (asp.net with vb code).Pls help.Thanks for ur help.

Walt  - CEO |75.41.80.xxx |2010-01-15 09:08:05
In the codeproject instructions, adding GoogleMapAPIWrapper.js is not
mentioned.



Could you please ad it to th instructions?

It took me 4 hours to figure out that the file had to be included in my
webSite.



Thank you for all of your effort.

I am using your control for a community support web site. Many many people will
benefit from your efforts.
tc  - re: Compile error - hideventname/value |143.239.7.xxx |2010-02-01 08:09:10
Jeff wrote:
I am getting errors with the compilation of the lines hideventName and
hidEventValue - error is does not exist in context.



Any suggestions what I am doing wrong? I am desperate.




Hi Jeff,



Did you get this fixed? I am getting the same error and cannot continue.
leila |78.33.191.xxx |2010-03-08 06:55:23
Hi,

great job on this user control. I have a question: where do you store the
googlemapobject back into session when any of its parameters (e.g. points) are
changed?
What I can't understand is how is the Google_Map_Object session variable is
different from what it was before when there's a change made to googlemapobject
object in aspx page postback! I don't see this object get stored back into
Google_Map_Object session variable.

Thanks in advance for your help.
EmiDu  - Geocoding in Reverse |200.81.127.xxx |2010-05-18 18:18:34
The control is excellent, so far I have not had any problems and I could do
everything, but my question is whether it is possible geocoding in reverse, and
as I would have to do it ... from now thank you very much and congratulations!
Vassago  - re: re: Compile error - hideventname/value |81.159.72.xxx |2010-05-31 07:38:54
I'm also having the same problem. I am developing an ASP.NET 3.5 web
application. I copied cGoogleMap.cs and GService.cs into a code folder (note:
not app_code as that doesn't exist for web applications - just web sites). I
also copied GoogleMapForASPNet.ascx (& associated .cs) into the root of my
application.

I'm getting the error 3 times in the Page_Load event of
GoogleMapForASPNet.ascx.cs

If anyone has any clues I'd appreciate it


tc wrote:
[quote=Jeff]I am getting errors with the compilation of the lines hideventName
and hidEventValue - error is does not exist in context.

Any suggestions what I am doing wrong? I am desperate.


Hi Jeff,

Did you get this fixed? I am getting the same error and cannot continue.[/quote]
Anonymous  - re: re: re: Compile error - hideventname/value |81.159.72.xxx |2010-05-31 17:52:12
Ok I fixed it. In the end I just created a new ascx control and copied/pasted
all the code into these files. I suspect it was something to do with the
.designer.cs file not being generated properly.

Vassago wrote:
I'm also having the same problem. I am developing an ASP.NET 3.5 web
application. I copied cGoogleMap.cs and GService.cs into a code folder (note:
not app_code as that doesn't exist for web applications - just web sites). I
also copied GoogleMapForASPNet.ascx (& associated .cs) into the root of my
application.

I'm getting the error 3 times in the Page_Load event of
GoogleMapForASPNet.ascx.cs

If anyone has any clues I'd appreciate it


[quote=tc][quote=Jeff]I am getting errors with the compilation of the lines
hideventName and hidEventValue - error is does not exist in context.

Any suggestions what I am doing wrong? I am desperate.
[/quote]
Last Updated on Monday, 01 March 2010 21:31