Click here to Skip to main content
16,016,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a issue for session object is reassigned. Here I explain detail,
I have a page with Grid which the data will bind using List. Which the list contains a property for a class each row. Like this,

Class Order
{
public string OrderNo{get;set;}
public string Quantity{get;set;}
}


List<order> Here the list object having 1000 rows. I have stored the list in a session variable which is used some other manipulation. For Grid Binding, I can not bind 1000rows at a time. Based on page size i will get the list from order list object. Like this,

OrderList.Skip(start).Take(limit).ToList();


For example, it will return 15 rows to bind the grid only. After binding the data i will get total list (1000 rows) and manipulate some process based on session variable. But session variable object having 15 rows only.

How it is possible to change the session object? I could not reassigned 15 rows to session object.

Please help me solve this problem
Posted

As Espen Harlinn
told you can put another similar type list for only 15 items

or if you show your code than it will help us to help you..
 
Share this answer
 
Use two session variables - one for the complete list, and one for 15 items you want to assign to the grid.

Regards
Espen Harlinn
 
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