Well, I'm toying with the idea of just written out hidden tags/values and
using request.form that way, as opposed to the array. In order to pass a
comma delimited string, I'd have to parse/concatenate the entire array,
right? I'm trying to see the benefit I guess.
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:uNSxA8JTEHA.3548@TK2MSFTNGP09.phx.gbl...[color=blue]
> Page 1:
>
> dim myArray(1)
> myArray(0) = "a"
> myArray(1) = "b"
> session("myArray") = myArray
>
> Page 2:
>
> myArray = session("myArray")
> response.write myArray(0)
>
> However, unless this is a complex array, you are likely better off to[/color]
avoid[color=blue]
> session variable and pass a comma-delimited string around. IMHO.
>
> --
>
http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "James Baker" <cppjames@hotmail.com> wrote in message
> news:uSdX52JTEHA.3768@TK2MSFTNGP11.phx.gbl...[color=green]
> > Fair enough...(forgive me, I'm trying to learn ASP again). Can a[/color][/color]
Session[color=blue][color=green]
> > variable handle this? What's the ideal method for "sharing" an array
> > between pages?
> >
> > James
> >
> >
> > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > news:eStLlzJTEHA.1468@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > How are you sending an "array" via post? Get and Post handle strings
> > > only... you't can pass an array like this and retrieve it via the[/color][/color]
> request[color=green][color=darkred]
> > > collection.
> > >
> > > --
> > >
http://www.aspfaq.com/
> > > (Reverse address to reply.)
> > >
> > >
> > >
> > >
> > > "James Baker" <cppjames@hotmail.com> wrote in message
> > > news:ezz2xwJTEHA.544@TK2MSFTNGP11.phx.gbl...
> > > > I'm trying to use Request.Form to gather information in an array and[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > keep
> > > > getting a type mismatch...not sure if it's even possible.[/color][/color][/color]
Basically,[color=blue][color=green]
> > Page[color=darkred]
> > > 1
> > > > posts to Page 2...and Page 1 contains a variable declared as:
> > > >
> > > > Dim mLic(50)
> > > >
> > > > ...which is then populated. When I try:
> > > >
> > > > Request.Form("mLic()") or
> > > > Request.Form("mLic") or
> > > > Request.Form("mLic(50)")
> > > >
> > > > I get a type mismatch every time. Is there a better/right way to do[/color]
> > this?[color=darkred]
> > > >
> > > > Thanks!
> > > > James
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]