Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 25th, 2010, 06:11 PM
Authorized User
 
Join Date: Nov 2009
Posts: 31
Thanks: 3
Thanked 0 Times in 0 Posts
Default No Menu for New User?

Users are cached in Globals class under “App_Code” folder of web project.
That’s why we need to invalidate the cache and load the data again from DB every time we create new user or role.
To work around this I call Globals.LoadXXX(Page.Cache) methods.
These methods exatelly do the same.
On save of user I call
Globals.LoadUsers(Page.Cache);
After Saving it.

On save of role I call
Globals.LoadRoles(Page.Cache);
After Saving it.

But when I logged in from newly created user in to system. The menu tab and tree are not rendered at all only for newly created user for old users it works fine. I need to restart the web server (IIS) to make it work. any one tried to solve it? Please share your findings.





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
Customizing page menu based on user credentials Balaji1979 ASP.NET 2.0 Professional 0 May 22nd, 2008 06:31 AM
how create menubar, menu, menu item in xsl vijayanmsc XSLT 1 June 5th, 2006 06:43 AM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
Changing Menu made with VB 4 Menu Editor Zooker VB How-To 1 July 26th, 2003 11:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.