Hi
i am trying to pass a simple array to be viewed on a javascript news scroller.
i tried to do it with ClientScript.RegisterArrayDeclaration
but it works only when i call the scroller function with a button
and another issue works only when i inserts a specific string like this:
Page.ClientScript.RegisterArrayDeclaration("arr", "TEST1","TEST2")
and not like this
string[] arr = { "test1", "test2" };
Page.ClientScript.RegisterArrayDeclaration("arrP", arr.ToString())
any other way to do this? or fix this way?
please add c# example because i am new to c# ans asp.net
thanks
Doron
i am trying to pass a simple array to be viewed on a javascript news scroller.
i tried to do it with ClientScript.RegisterArrayDeclaration
but it works only when i call the scroller function with a button
and another issue works only when i inserts a specific string like this:
Page.ClientScript.RegisterArrayDeclaration("arr", "TEST1","TEST2")
and not like this
string[] arr = { "test1", "test2" };
Page.ClientScript.RegisterArrayDeclaration("arrP", arr.ToString())
any other way to do this? or fix this way?
please add c# example because i am new to c# ans asp.net
thanks
Doron