On Feb 19, 5:51 am, "[email protected]" <[email protected]> wrote: > Hi, > I have written a javascript(searchaddresss) and a code behind on a > button click. > It works fine.But it refreshes the Google map,which i do not want. > For this i have written another javascript on button click after some > code but i > > it gives error as: > "The resource you are looking for (or one of its > dependencies) could have been removed, had its name changed, or is > temporarily unavailable. Please review the following URL and make > sure that it is spelled correctly." > > The code written on button click is as follows: > > protected void cmdsave_Click(object sender, EventArgs e) > { > //some code in c# > > //here is another javascript > string str="<script language='javascript'> var map = null; var marker > = null;var location = new GLatLng(document.form1.latitude.value, > document.form1.longitude.value); marker = new GMarker(location, > {draggable:false}); map.addOverlay(marker);</script>"; > this.RegisterStartupScript("fun", str); > > } > > Please give me solution for this problem.
You already got one: http://groups.google.com/group/Google-Maps-API/browse_frm/thread/75354cfbbceb6be0/2b99e12833bf0b2c#2b99e12833bf0b2c Please read and follow the posting guidelines if that doesn't help: http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
