I am using password recovery control in my page. Although I stopped calling Membership.GetUser() from anywhere from my Page - ForgotPassword.aspx.cs. But at exit by default it is calling Membership.GetUser() and creating some issue. Can I completely stop
calling Membership.GetUser() for a particular .aspx page?
Try to test User.Identity.IsAuthenticated so that you call GetUser() only if the user is authenticated. Does it work? If it still doesn't work knowiing which error you have could perhaps help.
None
0 Points
1 Post
Can I stop Membership.GetUser() call from a particular page
Apr 22, 2020 04:29 PM|supratik1979|LINK
Hi,
I am using password recovery control in my page. Although I stopped calling Membership.GetUser() from anywhere from my Page - ForgotPassword.aspx.cs. But at exit by default it is calling Membership.GetUser() and creating some issue. Can I completely stop calling Membership.GetUser() for a particular .aspx page?
Thanks
Supratik De
All-Star
48740 Points
18196 Posts
Re: Can I stop Membership.GetUser() call from a particular page
Apr 22, 2020 05:19 PM|PatriceSc|LINK
Hi,
Try to test User.Identity.IsAuthenticated so that you call GetUser() only if the user is authenticated. Does it work? If it still doesn't work knowiing which error you have could perhaps help.