.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 20th, 2004, 06:36 AM
kudeep kudeep is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 kudeep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry passing array or arraylist with viewstate

Hi

I am ceating a assessment ceattion page, in which administrator will type in the questions ans related answers in a page and clicks on the add button. then he enters infor bout the second question and clicks add button. he can do so for the number os questions he wants to add.

in the end he clicks on the finish button to save all the questions, answers as an xml file. Now the problem is how can I pass the values of multiple ques and answers from one page to another.

can i store in arraylist/array as admin clicks on the add button and in the end retrieve it when he clicks on the finish button. but how i am unable to do.

please help me in this context

Rgds
Deepak

Reply With Quote
  #2  
Old July 21st, 2005, 06:45 PM
applayer applayer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: NorthWest
Posts: 1 applayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 42 sec
Reputation Power: 0
Well this is a little late for the post but perhaps someone else will find it..
There are many ways to pass the array through the session.
1. Set a class in the session with the values you want, then set, get those values.
An array, arraylist, hashtable .... can be set as you would through the regular class access method with a little spice.
CType(Session.Item("ObjID"), mySecurity.ObjID).stage = mysid

mySecurity being the namespace
ObjID being the class
stage being the property
mysid being the value

With this method you have most of the class ability ~(not sure what you don't get)

Peace! MS

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > passing array or arraylist with viewstate


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT