Alfredo,
I often find myself using javascript arrays to accomplish this. You can
create the arrays manually or try the Page.RegisterAr rayDecleration method.
Multi dimensional arrays really aren't an option in Javascript, but, nested
arrays are. Here's an example from classic ASP of transfering an array ... I
like filling arrays like this because you can access the items like:
arrApprovers[ ApproverID ].FullName ....
var arrApprovers = new Array();
<%if IsArray(arrAppr overs) then %>
<% for counter = 0 to UBound(arrAppro vers,2) %>
arrApprovers['<%=arrApprover s(0,counter)%>'] = new Array();
arrApprovers['<%=arrApprover s(0,counter)%>']['FullName'] =
'<%=JSClean(arr Approvers(1,cou nter))%>';
arrApprovers['<%=arrApprover s(0,counter)%>']['Title'] =
'<%=JSClean(arr Approvers(3,cou nter))%>';
<% next %>
<% end if %>
Alex Papadimoulis
"Alfredo Magallón Arbizu" <am********@ful lstep.com> wrote in message
news:OR******** ******@TK2MSFTN GP09.phx.gbl...
Hello,
I need to pass the contents of a dataset to the client in order to use
these contents with javascript.
What is the best way to achieve that?
Normally I use controls like a grid or text boxes and then I read the
values using javascript objects.
Any other ideas? Greatly appreciated.
Thanks,
Alfredo