•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,486 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,247 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1411 | Replies: 1 | Solved
![]() |
•
•
Join Date: Apr 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 1
•
•
•
•
Is there a difference in handling between Session.Add("SOMETHING","somevalue") and Context.Items.Add("SOMETHING","somevalue")?
Using Session.Add, the item will be added to the session and available throughout the duration of the session, across all pages.
With Context.Items.Add, the item will be added to the current page request only and accessible up until the page finishes loading, after which the value will be lost. In my experience, this is usually used in conjunction with Server.Transfer to pass values between pages.
Hope this helps.
Mun
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Session variable keeping login information (ASP.NET)
- Internet speeds way down along with connectivity (Viruses, Spyware and other Nasties)
- Hijackthis report, I just don't know (Viruses, Spyware and other Nasties)
- explorer, iexplore don't start (Viruses, Spyware and other Nasties)
- winfixer popups/ computer restarting (Viruses, Spyware and other Nasties)
- A agntsrvc.exe file error (Viruses, Spyware and other Nasties)
- Hacktool.Rootkit Issue (Viruses, Spyware and other Nasties)
- ASP.NET: Context.Items.Add question (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: sms via .net with C#
- Next Thread: how to design a website


Linear Mode