Casting Object into String[ ]?

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.
 
D

Dmitriy Lapshin [C# / .NET MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top