Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Im confused with passing arrays


Message #1 by sridarti@s... on Wed, 19 Dec 2001 03:52:56
Hi,



my web front(ASP) has to constabtly reference to the component which is in 

VB. the components objects functions are mostly done with Arrays....



I am CONFUSED...with, when i retrive those functions and put into eg: 

select boxes..etc....on the web front.



How do i then pass those selected values...from web front to web 

front...that means from pages to pages...



I am confused with passing arrays from page to page...and in addiction cox 

i have to retrive them from the componets it adds to my confusion..



please can someone enlighten me alittle...

Message #2 by "Ken Schaefer" <ken@a...> on Wed, 19 Dec 2001 19:01:46 +1100
You can't pass arrays from page to page - all you can use one your page is

HTML. There is no HTML element for an array.



You need to use workarounds - for example, join the array into a delimited

string and store that in a hidden variable or a cookie. Then split the value

on the next page to recreate the array.



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: <sridarti@s...>

Subject: [asp_web_howto] Im confused with passing arrays





: my web front(ASP) has to constabtly reference to the component which is in

: VB. the components objects functions are mostly done with Arrays....

:

: I am CONFUSED...with, when i retrive those functions and put into eg:

: select boxes..etc....on the web front.

:

: How do i then pass those selected values...from web front to web

: front...that means from pages to pages...

:

: I am confused with passing arrays from page to page...and in addiction cox

: i have to retrive them from the componets it adds to my confusion..



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Message #3 by "Sridarti Herryanto" <sridarti@s...> on Thu, 20 Dec 2001 22:29:28 +0800
HI Ken,



So does that mean...if i had retrive the values whihc are Arrays..and im

merely displaying them in the relative combo or textboxes..and then i want

the selected value to be captured and at the next page is process and and

inserted into the DB as a new record...i have to constantly..assigned them

to something first then split them up again before i can insert them  into

the DB as a new record?



sri











~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Everytime our eyes meet

This feeling inside me

Is almost more than I can take

Baby when you touch me

I can feel how much you love me

And it just blows me away

I've never been this close to anyone or anything

I can hear your thoughts

I can see your dreams

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----

From: "Ken Schaefer" <ken@a...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, December 19, 2001 4:01 PM

Subject: [asp_web_howto] Re: Im confused with passing arrays





> You can't pass arrays from page to page - all you can use one your page is

> HTML. There is no HTML element for an array.

>

> You need to use workarounds - for example, join the array into a delimited

> string and store that in a hidden variable or a cookie. Then split the

value

> on the next page to recreate the array.

>

> Cheers

> Ken

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> From: <sridarti@s...>

> Subject: [asp_web_howto] Im confused with passing arrays

>

>

> : my web front(ASP) has to constabtly reference to the component which is

in

> : VB. the components objects functions are mostly done with Arrays....

> :

> : I am CONFUSED...with, when i retrive those functions and put into eg:

> : select boxes..etc....on the web front.

> :

> : How do i then pass those selected values...from web front to web

> : front...that means from pages to pages...

> :

> : I am confused with passing arrays from page to page...and in addiction

cox

> : i have to retrive them from the componets it adds to my confusion..

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>

>




$subst('Email.Unsub').



Message #4 by "Ken Schaefer" <ken@a...> on Fri, 21 Dec 2001 12:39:49 +1100
If you just want to capture the selected value, that is easy - you use the

Request.Form() collection.



If you want to pass *all* the values of the array (including the ones that

are not selected), then you need to join them, and split them up on the next

page.



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "Sridarti Herryanto" <sridarti@s...>

Subject: [asp_web_howto] Re: Im confused with passing arrays





: HI Ken,

:

: So does that mean...if i had retrive the values whihc are Arrays..and im

: merely displaying them in the relative combo or textboxes..and then i want

: the selected value to be captured and at the next page is process and and

: inserted into the DB as a new record...i have to constantly..assigned them

: to something first then split them up again before i can insert them  into

: the DB as a new record?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index