B
BillGatesFan
If I click a button and have a function that registers a startup
script like
button_click event:
ClientScript.RegisterStartupScript(GetType(Page), "gArray", "var
DAddresses = new Array(1,2,3);", True)
Then I have in my head tag
<script type="text/javascript">
var DAddresses = null;
function initialize() {
alert(DAddresses);
if (DAdresses)
showAddress(DAddresses);
}
function showAddress(address) {
alert(address);
....
}
</script>
I'm trying to create an javascript array on the server to be used by
my client-side javascript on postback
script like
button_click event:
ClientScript.RegisterStartupScript(GetType(Page), "gArray", "var
DAddresses = new Array(1,2,3);", True)
Then I have in my head tag
<script type="text/javascript">
var DAddresses = null;
function initialize() {
alert(DAddresses);
if (DAdresses)
showAddress(DAddresses);
}
function showAddress(address) {
alert(address);
....
}
</script>
I'm trying to create an javascript array on the server to be used by
my client-side javascript on postback