SQL サーバーから Google マップを更新しようとしています。
以下に示すように、C#で定義された配列があります
foreach (Location item in lst) {
ScriptManager.RegisterArrayDeclaration(UpdatePanel1, "infoarray", "'"+item.Description.ToString()+"'");
ScriptManager.RegisterArrayDeclaration(UpdatePanel1, "lonarray", item.Longitude.ToString());
ScriptManager.RegisterArrayDeclaration(UpdatePanel1, "latarray", item.Latitude.ToString());
ScriptManager.RegisterArrayDeclaration(UpdatePanel1, "bounce", item.Bounce.ToString());
}
これらの配列がjscriptによって呼び出されると
//loop to set the markers
for (var i = 0; i < lonarray.length; i++) {
//get the longtitude from the longtitude array this array is set from the C# code
longt = lonarray[i];
//get the latitude from the latitude array this array is set from the C# code
lat = latarray[i];
//set a title
var title = 'test';
lonarray が定義されていないというランタイム エラーが発生します。
私は何を間違っていますか??