Vladekins1
Programmer
Hi,
I am trying to figure out why when I invoke a JavaScript function that calls an API via a button on my ASP.NET webpage I am able to successfully call my API and get a complete response of all its methods. However if I call the same funtion using the RegisterStartupScript I only get a partial list of methods in the response from the API.
Any comments or suggestions will be greatly appreciated.
Below is the code I am using:
I am trying to figure out why when I invoke a JavaScript function that calls an API via a button on my ASP.NET webpage I am able to successfully call my API and get a complete response of all its methods. However if I call the same funtion using the RegisterStartupScript I only get a partial list of methods in the response from the API.
Any comments or suggestions will be greatly appreciated.
Below is the code I am using:
Code:
Dim script As String = String.Format("javascript:geocode({0});", "'" & address & ", " & city & ", " & state & "'")
ClientScript.RegisterStartupScript(Me.GetType(), "geocode", script, True)