D
dave
I have code in the Global.asax that adds roles to a logged in user, which
all works fine.
But, i noticed that every request for a page thereafter runs this code each
time - which requires a call to the DB, which is costly.
I have tried to run this same piece of code from another page, instead of
global.asax, but it never seems to be able to assign the roles to that
current user?
Is there something different i have to do in order to make it work elsewhere
(ie, not within global.asax file).
Thanks in advance!
all works fine.
But, i noticed that every request for a page thereafter runs this code each
time - which requires a call to the DB, which is costly.
I have tried to run this same piece of code from another page, instead of
global.asax, but it never seems to be able to assign the roles to that
current user?
Is there something different i have to do in order to make it work elsewhere
(ie, not within global.asax file).
Thanks in advance!