Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

arrays

  Asked By: Josefina    Date: May 24    Category: Asp.net    Views: 903
  

if I have an array like

public int[] size = new int[6] { 0, 1, 2, 3, 4, 5};

I can store it in session like
Session["ar"] = size;

.... but how do I get it out again, I need to specify the type for conversion ?

I havelokked for other measn like convert and changetype ans so forth - but no
success.

any one have any other pointers ?

I know i can wrap it in a class if I need to.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Dylan Evans     Answered On: May 24

Hey cast it to an Array:

size = (int[])Session["ar"] ;

 
Didn't find what you were looking for? Find more on arrays Or get search suggestion and latest updates.




Tagged: