Click here to Skip to main content
15,886,631 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I am using Session variables for storing the values. Now I am converting these session values to hidden field. For single values like username or password it is fine me to convert it. but I want to convert arraylist,datatable etc to hidden field.

How can I convert it to hidden field?

Is there any better solution other than storing list to hidden field so that I can use that values to next page.


Thanks
sjs
Posted
Comments
E.F. Nijboer 8-Nov-10 8:17am    
As sidenote: I would strongly advice against storing username/password in hidden fields and/or in the viewstate.

1 solution

Why are you gloing for Hiddenfields. Use Viewstate instead. It internally uses hidden variable, and you can store anything which is serializable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900