Casting Object into String[ ]?

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Hi:

Here's what I am trying to do, pass a string array between
two pages using Server.Transfer method.

Sending page I do this:
private string[] arrFCInfo=new String[5];
//Property - read only public
public object arrayFC
{
get
{
return arrFCInfo;
}
}

In the receiving page, I want to get the string array from
the object.

My basic question: How do I cast an object in to a string
[]?

Thanks in advance.
 
Hi,

I doubt if the source page class instance is retained upon
Server.Transfer() - and therefore you won't be able to retrieve a value
stored by the source page in its private variable. I'd suggest using the
session instead.
 
Back
Top