asp.netアプリケーションのc#からJavaScript配列値を初期化したい。私はループを繰り返す以下のコードを持っています、
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "assignGroupParty" + i, string.Format("javascript:SetProspectGroupPartyID({0},{1});"currentIndex, currentQueue.PartyID), true);
ここ
javascript:SetProspectGroupPartyID
配列値をcurrentIndexの位置に設定する関数です。
O/P:- [undefined, 37316]
常に1つのインデックスにのみ割り当てられ、もう1つは未定義のままです。誰かがこれについて私を助けることができますか?ありがとう