Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii , I am trying to mainatain list collections in viewste which is throwing an error

I am applying sort order on my table and that sort order i want to use if i click on export button ,.i tried to store in viewste at the time when i apply sort .

but getting an exceprtion
Posted
Comments
hypermellow 12-Sep-14 6:56am    
I doubt anyone will be able to provide you with an answer until you at least post your code, and details of the exception that's raised.
Torakami 12-Sep-14 7:48am    
rough code is

displyreport()
{
viewste["report"]=lstReport;
}


I tried to use serilizable keyword on the top of class as well

InnerException = {"Error serializing value 'System.Collections.Generic.List`1[ActusLibrary.ObjectivesReport]' of type 'System.Collections.Generic.List`1[[ActusLibrary.ObjectivesReport, ActusLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].'"}

1 solution

Just the idea: view state storage is based on serialization. You can store any serializable object.
Please see:
http://en.wikipedia.org/wiki/Serialization[^],
http://msdn.microsoft.com/en-us/library/7ay27kt9%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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