Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:17:03+00:00 2026-06-10T12:17:03+00:00

I have a google map javascript link like: string GoogleURL = http://maps.google.com/maps?file=api&v=2&key=abcdefg I built

  • 0

I have a google map javascript link like:
string GoogleURL = “http://maps.google.com/maps?file=api&v=2&key=abcdefg”

I built a user control, which will register this script like this:
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), key, String.Format(“”, GoogleURL), false);

Then this control have other script which will call something from google API like:
google.maps.MapTypeId.ROADMAP

This user control will be placed in:

and it will be set as Visible=”false” default

When I click a button to fire AJAX, it set the visible equal true server side.
But I get a exception like this:
Microsoft JScript runtime error: Unable to get value of the property ‘ROADMAP’: object is null or undefined

If I put the user control out of updatepanel, everything goes well.

I tried write a script instead Google’s, ajax load it and run it, it still works.

I don’t know why this happen, does that because the AJAX load call each JS file at the same time, Google’s JS file takes more time so when the next JS file called it still in loading?

Thanks for any idea about how to solve this problem.
If my description is not enough detail please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:17:04+00:00Added an answer on June 10, 2026 at 12:17 pm

    Try to use this one or use similar technology for loading function.

    http://api.jquery.com/ready/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a google map located at: http://calwestcultural.com/sgs/example_map.html I am trying to link
I have a scenario where I am using Google Map JavaScript API to process
I have a map powered by Google Maps Javascript API3 in my jQuery Mobile
I have 4 days of experience with Google Maps Javascript API and i find
I have this simple hello world version of a google map api javascript v3
I have a google map in a page (Using the Javascript API v3) the
I have a google map set with the Javascript API V3. It's displayed in
I have a map with multiple markers of companies using google maps API v3.
I have a google map using V3 of the API. It has one marker
I am using the Google Maps API. I get the Google Map by: $map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.