Click here to Skip to main content
15,900,907 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdding ButtonColumn to GridView Dynamiclly Pin
reem_saeed29-Jul-09 4:22
reem_saeed29-Jul-09 4:22 
AnswerRe: Adding ButtonColumn to GridView Dynamiclly Pin
Abhijit Jana29-Jul-09 4:30
professionalAbhijit Jana29-Jul-09 4:30 
GeneralRe: Adding ButtonColumn to GridView Dynamiclly [modified] Pin
reem_saeed31-Jul-09 22:28
reem_saeed31-Jul-09 22:28 
Questiongoogle maps not working [modified] Pin
Member 468362029-Jul-09 3:28
Member 468362029-Jul-09 3:28 
AnswerRe: google maps not working Pin
Abhishek Sur29-Jul-09 4:19
professionalAbhishek Sur29-Jul-09 4:19 
GeneralRe: google maps not working Pin
Member 468362030-Jul-09 4:48
Member 468362030-Jul-09 4:48 
GeneralRe: google maps not working Pin
Abhishek Sur30-Jul-09 21:51
professionalAbhishek Sur30-Jul-09 21:51 
GeneralRe: google maps not working Pin
Member 468362031-Jul-09 5:04
Member 468362031-Jul-09 5:04 
hmm...I'm not too sure what you mean by that, but maybe let me explain to you what i want to achieve.

within this code, now I can get the correct address shows up on the google map, however if the address is invalid (e.g. 123 test street, new york). then the map will not show up. my question is how can i modify the code, so that when the address is invalid, it will popup an alert saying "address not found on map", or else it will show the correct address in the map.

<script type="text/javascript" language=javascript>
var geocoder;
var map;

function load()
{
    var address = document.getElementById("<%=lblmap.ClientID%>").innerHTML;
    map = new GMap2(document.getElementById("map"));
    geocoder = new GClientGeocoder();
    geocoder.getLocations(address, addToMap);
}

function addToMap(response)
{
        place = response.Placemark[0];
        point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
        map.setCenter(point,13);
        marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(place.address);
}
</script>


I tried to learn from your sample3 to do the "IF" statement, but I don't know which value to use as condition. I can only imagine "IF" the address is invalid, alert the error message, else load the map correctly.
GeneralRe: google maps not working Pin
Member 46836201-Aug-09 19:10
Member 46836201-Aug-09 19:10 
GeneralRe: google maps not working Pin
Member 46836204-Aug-09 2:28
Member 46836204-Aug-09 2:28 
AnswerRe: google maps not working Pin
Abhishek Sur29-Jul-09 4:31
professionalAbhishek Sur29-Jul-09 4:31 
QuestionHow to make Main Menu and Sub Menu Using Rpeater Control in asp.net ( not Main Menu only) Pin
blainzaw29-Jul-09 3:25
blainzaw29-Jul-09 3:25 
AnswerRe: How to make Main Menu and Sub Menu Using Rpeater Control in asp.net ( not Main Menu only) Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:26
professionalVimalsoft(Pty) Ltd29-Jul-09 3:26 
Questionwhat is API Pin
Ashwini.dg29-Jul-09 3:21
Ashwini.dg29-Jul-09 3:21 
AnswerRe: what is API Pin
Manas Bhardwaj29-Jul-09 3:24
professionalManas Bhardwaj29-Jul-09 3:24 
AnswerRe: what is API Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:25
professionalVimalsoft(Pty) Ltd29-Jul-09 3:25 
AnswerRe: what is API Pin
Victor.Ai.29-Jul-09 13:13
Victor.Ai.29-Jul-09 13:13 
QuestionProblem displaying Windows Control in ASP.net Web Site. Pin
VikashGohil29-Jul-09 3:19
VikashGohil29-Jul-09 3:19 
AnswerRe: Problem displaying Windows Control in ASP.net Web Site. Pin
Vimalsoft(Pty) Ltd29-Jul-09 3:23
professionalVimalsoft(Pty) Ltd29-Jul-09 3:23 
GeneralRe: Problem displaying Windows Control in ASP.net Web Site. Pin
VikashGohil29-Jul-09 3:50
VikashGohil29-Jul-09 3:50 
GeneralRe: Problem displaying Windows Control in ASP.net Web Site. Pin
Vimalsoft(Pty) Ltd29-Jul-09 4:35
professionalVimalsoft(Pty) Ltd29-Jul-09 4:35 
Questionscroll bar issue in fixed header Pin
indian14329-Jul-09 2:54
indian14329-Jul-09 2:54 
AnswerRe: scroll bar issue in fixed header Pin
Manas Bhardwaj29-Jul-09 3:22
professionalManas Bhardwaj29-Jul-09 3:22 
QuestionParser Error Pin
zeeShan anSari29-Jul-09 1:20
zeeShan anSari29-Jul-09 1:20 
AnswerRe: Parser Error Pin
Vimalsoft(Pty) Ltd29-Jul-09 1:57
professionalVimalsoft(Pty) Ltd29-Jul-09 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.