473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Passing Arrays

Good day folks.

I'm probably overlooking the obvious, but asking for feedback none the less
=)

Can you pass a multidimensional array to a self posting ASP page?

arrMDArray=Request.Form("arrAllData")
Filler code
<input type="hidden" name="arrAllData" value="<%=arrData%>">

If the above isn't possible can it be done breaking the MD Array into
separate single arrays?
<input type="hidden" name="arrAllData1" value="<%=ubound(arrData,1)%>">
<input type="hidden" name="arrAllData2" value="<%=ubound(arrData,2)%>">

If this second method is allowable, then I guess my next question would be
how would I then take the passed single dimension arrays and put them back
into a 2-d array?
I'm sure the call would be something like this:
arrData1=request.form("arrAllData1")
arrData2=request.form("arrAllData2")
Insert combining code(which I don't know)

Thanks from this ASP newbie
Jul 19 '05 #1
3 2672
How about using session variables? Is that an acceptable option for you?
If not, we can come up with something.

Ray at work

"David P. Jessup" <davidATimntDASHtechDOTcom> wrote in message
news:OT****************@TK2MSFTNGP09.phx.gbl...
Good day folks.

I'm probably overlooking the obvious, but asking for feedback none the less =)

Can you pass a multidimensional array to a self posting ASP page?

arrMDArray=Request.Form("arrAllData")
Filler code
<input type="hidden" name="arrAllData" value="<%=arrData%>">

If the above isn't possible can it be done breaking the MD Array into
separate single arrays?
<input type="hidden" name="arrAllData1" value="<%=ubound(arrData,1)%>">
<input type="hidden" name="arrAllData2" value="<%=ubound(arrData,2)%>">

If this second method is allowable, then I guess my next question would be
how would I then take the passed single dimension arrays and put them back
into a 2-d array?
I'm sure the call would be something like this:
arrData1=request.form("arrAllData1")
arrData2=request.form("arrAllData2")
Insert combining code(which I don't know)

Thanks from this ASP newbie

Jul 19 '05 #2
Ray,

I'm trying to stay away from Session for the moment.
Jul 19 '05 #3
I'm sure the call would be something like this:
arrData1=request.form("arrAllData1")
arrData2=request.form("arrAllData2")
Insert combining code(which I don't know)


Well testing the above gave me this:
arrData1 was equal to the count in the array, not the data
same with arrData2 was just the count.
I imagine I'm close to answering my question.
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
2
by: dave.harper | last post by:
I'm relatively new to C++, but have a question regarding functions and arrays. I'm passing a relatively large array to a function several thousand times during the course of a loop, and it seems...
2
by: Morgan | last post by:
Thanks to all of you because I solved the problem related with my previous post. I simply made confusion with pointers to pointers and then succeeded passing the reference to the first element...
3
by: Mark | last post by:
Hi From what I understand, you can pass arrays from classic ASP to .NET using interop, but you have to change the type of the.NET parameter to object. This seems to be because classic ASP passes...
2
by: Steve Turner | last post by:
I have read several interesting posts on passing structures to C dlls, but none seem to cover the following case. The structure (as seen in C) is as follows: typedef struct tag_scanparm { short...
2
by: luis | last post by:
I'm using ctypes to call a fortran dll from python. I have no problems passing integer and double arryas, but I have an error with str arrys. For example: ..... StringVector = c_char_p *...
17
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hi Gurus, I need to transfer a jagged array of byte by reference to unmanaged function, The unmanaged code should changed the values of the array, and when the unmanaged function returns I need...
1
by: Fizzics | last post by:
This is my first post here at Bytes. I have been trolling it, mostly with the help of Google searches, for some time now. I have done about all of the searching and reading that I really know how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.