M
matthewdavis1980
Hi all,
I have a scenario and maybe you guys can help me out. I'm working with
asp.net 2.0 and have created a website under a website template. My
ultimate goal is to have the website available under "anonymous access"
to the public, but special features available under integrated windows
authentication. In page load, I want to verify the the user is
authenticated, and if so, show the special features. If not, keep them
hidden. In IIS, if I have integrated security checked, but not
"anonymous access", I can pull the user.identity.name. If I have
integrated security and anonymous access checked, I can no longer pull
the user.identity.name, as it returns an empty string. If my memory
serves me correctly, in VS 2003 I was able to accomplish this somehow.
With all of that said, what's going on? Is this a recommended way to
handle this scenario?
Thanks,
Matt
I have a scenario and maybe you guys can help me out. I'm working with
asp.net 2.0 and have created a website under a website template. My
ultimate goal is to have the website available under "anonymous access"
to the public, but special features available under integrated windows
authentication. In page load, I want to verify the the user is
authenticated, and if so, show the special features. If not, keep them
hidden. In IIS, if I have integrated security checked, but not
"anonymous access", I can pull the user.identity.name. If I have
integrated security and anonymous access checked, I can no longer pull
the user.identity.name, as it returns an empty string. If my memory
serves me correctly, in VS 2003 I was able to accomplish this somehow.
With all of that said, what's going on? Is this a recommended way to
handle this scenario?
Thanks,
Matt