且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关于asp.net中的会话

更新时间:2023-09-11 23:24:34

您确实需要扩展您的问题,但是我在经验不足的开发人员的代码中经常发现的一个问题是,它们没有包装使用IsPostback检查覆盖Page_Load中的相应代码.如果要在其中创建会话变量,则每次页面加载时都可能会覆盖它们.


hi. friend


I make a session in home page which is related to master page.
It call many pages work good but this session i call a page which is not related to any master page that project.

first time it work but when it page load again then session expire

plese tell any body for my mail:- [Removed e-mail]
in Advance thanks ...

You really need to expand your question, but one issue I often find in code from inexperienced developers is that they don''t wrap the appropriate code in the Page_Load override with a IsPostback check. If you are creating session variables in there you may be overwriting them on every page load.