Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir
i have one question regarding position of user

i have two pages viewed products and second edit products

in viewedit there is functionality like search sort paging pagesize and while user click on row then goes to edit

what i want is that when user click on then row then goes to the edit products then when user press back button whatever he have done at last suppose searched record then at viewedit page should be as it is what he have done last

any suggestions welcome i have very few idea about this one probably maintaining sessions or query string?
Posted
Comments
Sushil Mate 13-Aug-13 5:05am    
what I understood from explanation you can try viewstate.
Dholakiya Ankit 13-Aug-13 5:06am    
not viewstate i have two pages i have written
Sushil Mate 13-Aug-13 5:07am    
so why viewstate will not work?
Dholakiya Ankit 13-Aug-13 5:13am    
viewstate will get lost when second page will be open

i have done through session array it is best to use :)
 
Share this answer
 
You can take help of hidden fields to store your previous information.Session can be a nice solution,but session puts unnecessary overhead on project execution.If there are less information to be kept,then session is okay.Otherwise go for hidden fields.
 
Share this answer
 
Comments
Dholakiya Ankit 14-Aug-13 2:47am    
yes but i have two pages in this case how can i maintain position of this two ones?
Jitendra Sabat 14-Aug-13 3:21am    
Ok......i got it.Then, better to go for session as it is a global variable.
Hello Ankit,

In your scenario session is best way to maintain last record state.
 
Share this answer
 
Comments
Dholakiya Ankit 13-Aug-13 4:59am    
ok thanks 5ed

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