|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > passing array or arraylist with viewstate |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|