Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: Re: SitePrincipal problem


Message #1 by "jiang tang" <jtang63@y...> on Fri, 6 Sep 2002 15:51:48
It will be false if you are not authenticated.  I think if you refresh the 
page, you meant to refresh the user information as well.  IsPostBack won't 
guard against "refresh".

JT

> PhilePage.aspx,

> 	if (!(Context.User is SitePrincipal)) 
	> {
 >           // Get user info from the database
 >        }

> The above condition is always true.  Therefore
t> he application hits the database every time I refreshed
t> he page.  Does anyone knows how to resolve this
p> roblem? I don't want it to call the database
a> nd retrieve user info every time. Thanks.

  Return to Index