need2progm
Programmer
I do this all day long at my job in vb.net.. very new to c#.
I set my session in If not post back....
Session["newCollection"] = newCollection;
Then try to refer to that session in a method...
SongCollection newCollection = new SongCollection();
Session.Contents["newCollection"] = newCollection;
//add to collection
newCollection.Add(aBrandNewSong);
//so I can do this
foreach (Song aSong in newCollection)
//add to grid
//the newly added object diaplay's the others are gone ?
My thought was syntax ...cuz I am so new to the c way of doing things
Carly
I set my session in If not post back....
Session["newCollection"] = newCollection;
Then try to refer to that session in a method...
SongCollection newCollection = new SongCollection();
Session.Contents["newCollection"] = newCollection;
//add to collection
newCollection.Add(aBrandNewSong);
//so I can do this
foreach (Song aSong in newCollection)
//add to grid
//the newly added object diaplay's the others are gone ?
My thought was syntax ...cuz I am so new to the c way of doing things
Carly