Click here to Skip to main content
16,005,037 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi sir,

i am taking one page i.e., Credits.aspx in that page i place Multiview, in View1 i display Credits pack like 1000,2000,5000. and cost in datagrid. if user select 1000 credits pack that pack information is displayed in view2.

and in View2 i place one hyperlink i.e., goto shopingcart page, in that shoppingcart page i place Back button if he click

Back button, then he goes to previous selected Pack information (View2)


How to take Total page into session sir. please give a solution



Thanks.
Posted

One method: create a class that describes your objects. Populate the class and store in session. Read values from class when required.
 
Share this answer
 
Comments
Venkatesh Mookkan 24-Aug-10 1:58am    
Reason for my vote of 5
This is a better way to main the values of a page. I am afraid whether the questioner know how to do it.
R. Giskard Reventlov 24-Aug-10 3:40am    
That, my friend, is a whole other question!
you can use Cache at the top of the page to and CacheDuration at the page directives

C#
THanks,
Hiren Solanki
 
Share this answer
 
Comments
Sandeep Mewara 27-Aug-10 13:47pm    
Reason for my vote of 1
Using caching will not show updated data at all times.

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