BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
So when I add new users to the system, it works just fine. Saves them to the database, displays them in the custom gridview.
So next I go to Roles to create a new role to assign the newly added users to.
However, NONE of the new users show up in the select listbox. this box still maintains the users that were there before. the only way to get the newly added users is to exit the program, rebuild the solution, and then relaunch the program.
That can't be right so clearly I'm missing something. Anyone wanna take a stab?
Most likely it's because the user list is cached (or in the ViewState). I may have missed it, but I didn't see anywhere in the code where Vince flushed the cache or the ViewState (it's been a couple months since I looked at it though).
I know I experienced a similar issue, and wound up writing some code to clear the cache and/or ViewState.
Anyway, sorry for the vague answer - but I'd look at Cache and ViewState. You may need to write some code yourself to handle the issue.