Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to pass the dataTable from pop Up page to it's parent .i do it by session
how can i do it without session?
Posted
Updated 19-Apr-11 0:19am
v2
Comments
OriginalGriff 19-Apr-11 5:49am    
Please do not post the same question twice: I have deleted the duplicate.
If you want to alter a question, use the "Improve Question" widget.

Session.Abandon() will clear all the session in the site.

If you want clear the session in a page don't use Session.
You can use Viewstate[^].
 
Share this answer
 
v3
Comments
faezeh66 19-Apr-11 6:06am    
i want to pass the dataTable from pop Up page to it's parent .i do it by session how can i do it ?
Toniyo Jackson 19-Apr-11 6:20am    
Question changed!!!
faezeh66 19-Apr-11 6:43am    
yes please answer it
Have a look at Session.Abandon[^]


Session is 'global' to the user running your web application - it maintains state between redirects and postbacks. If you clear Session on one page, you wont be able to use the Session on other pages.

If you want something for one page only, then consider storing using ViewState[^]
 
Share this answer
 
v2
Comments
faezeh66 19-Apr-11 5:55am    
i want to clearin session of one page,and dont effect on other opened pages ,can i do it?
Dylan Morley 19-Apr-11 5:57am    
See my updated answer
nit_singh 19-Apr-11 7:30am    
We need some type of customization to mark a session object belongs from this particular page so we can create sessions keys with “PAGENAME.SessionName”.
And we can create a method which take PAGENAME as arguments and delete all the sessions having Key which starts with the PAGENAME.
Session["PAGE1.Session1"] = "Session1";
faezeh66 19-Apr-11 6:02am    
i want to pass the dataTable from pop Up page to it's parent .i do it by session
how can i do it ?

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