Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralListView Scroller Pin
Snowjim20-Feb-04 12:45
Snowjim20-Feb-04 12:45 
GeneralRe: ListView Scroller Pin
Heath Stewart20-Feb-04 13:23
protectorHeath Stewart20-Feb-04 13:23 
GeneralMultiple backbuffers DirectDraw Managed Pin
Jean Bédard20-Feb-04 11:16
Jean Bédard20-Feb-04 11:16 
GeneralRe: Multiple backbuffers DirectDraw Managed Pin
Heath Stewart20-Feb-04 11:33
protectorHeath Stewart20-Feb-04 11:33 
GeneralRe: Multiple backbuffers DirectDraw Managed Pin
Jean Bédard20-Feb-04 13:26
Jean Bédard20-Feb-04 13:26 
GeneralRe: Multiple backbuffers DirectDraw Managed Pin
SIDDHARTH_JAIN20-Feb-04 18:16
SIDDHARTH_JAIN20-Feb-04 18:16 
GeneralCollections Pin
gordingin20-Feb-04 8:44
gordingin20-Feb-04 8:44 
GeneralRe: Collections Pin
Heath Stewart20-Feb-04 10:08
protectorHeath Stewart20-Feb-04 10:08 
ASP.NET is really no different from CGI in the world of HTTP. You can't really send a collection from form to form - you need to use POST data just like form elements in a page. You could store the collection in a session variable, but you'll take big performance hits if you don't clean it up correctly.

I'm not really sure what those objects are, but they appear to be an array and a list. Lists are those classes that implement IList (and inherit ICollection and IEnumerable). Arrays implicitly derive from System.Array, which implements IList. So, they're both lists (but you can't use some methods from the aforementioned interfaces with an array - it's still a fixed number of elements).

You could serialize this collection and base64-encode it, then make sure it gets sent with your form data to the next page, deserializing it. If you're remaining on the same page (i.e., using post-back), you could also extend the Page class (your .aspx and code-behind files do this already) and override SaveViewState and LoadViewState to save this serialized collection, but this only works if using post-back with the same page. You should definitely read the documentation on those two methods - implementing them can be tricky, especially if you don't know what you're doing.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Collections Pin
Guillermo Rivero20-Feb-04 10:11
Guillermo Rivero20-Feb-04 10:11 
GeneralRe: Collections Pin
Heath Stewart20-Feb-04 11:29
protectorHeath Stewart20-Feb-04 11:29 
GeneralRe: Collections Pin
Guillermo Rivero20-Feb-04 11:52
Guillermo Rivero20-Feb-04 11:52 
GeneralRe: Collections Pin
Heath Stewart20-Feb-04 13:18
protectorHeath Stewart20-Feb-04 13:18 
QuestionHow to make a Text Box only Numbers Pin
gr8tushar20-Feb-04 8:06
gr8tushar20-Feb-04 8:06 
AnswerRe: How to make a Text Box only Numbers Pin
Werdna20-Feb-04 8:31
Werdna20-Feb-04 8:31 
AnswerRe: How to make a Text Box only Numbers Pin
Judah Gabriel Himango20-Feb-04 8:34
sponsorJudah Gabriel Himango20-Feb-04 8:34 
GeneralParsers Pin
Husein20-Feb-04 7:40
Husein20-Feb-04 7:40 
GeneralRe: Parsers Pin
Werdna20-Feb-04 8:26
Werdna20-Feb-04 8:26 
GeneralUse an ACtiveX in my .NET application Pin
Mazdak20-Feb-04 2:56
Mazdak20-Feb-04 2:56 
GeneralRe: Use an ACtiveX in my .NET application Pin
Heath Stewart20-Feb-04 3:18
protectorHeath Stewart20-Feb-04 3:18 
GeneralRe: Use an ACtiveX in my .NET application Pin
Mazdak20-Feb-04 4:26
Mazdak20-Feb-04 4:26 
GeneralRe: Use an ACtiveX in my .NET application Pin
Heath Stewart20-Feb-04 6:23
protectorHeath Stewart20-Feb-04 6:23 
GeneralRe: Use an ACtiveX in my .NET application Pin
Mazdak20-Feb-04 9:16
Mazdak20-Feb-04 9:16 
GeneralRe: Use an ACtiveX in my .NET application Pin
Heath Stewart20-Feb-04 10:10
protectorHeath Stewart20-Feb-04 10:10 
GeneralRe: Use an ACtiveX in my .NET application Pin
Mazdak20-Feb-04 3:25
Mazdak20-Feb-04 3:25 
GeneralListing files&folders on a server Pin
CWIZO20-Feb-04 1:31
CWIZO20-Feb-04 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.