开发者

Using WebParts, how can I let anonymous users see customizations made by authorized users?

开发者 https://www.devze.com 2023-02-05 20:07 出处:网络
I have an app that allows a user (fred) to login and customize a page.I then want anonymous users to access the page using the login users name (fre) and see the customized page.

I have an app that allows a user (fred) to login and customize a page. I then want anonymous users to access the page using the login users name (fre) and see the customized page.

Is there a way that I can programmatically load the profile?

The anonymous users do not 开发者_JS百科have the password for the page, just the user name. I have the web.config set to allow access for everyone to the page, but the WebParts do not get loaded because they are part of the user's profile. I was hoping I could take the users name and programmatically load the respective WebParts for that user.

Any help is appreciated.

Thanks


you could load it based on session state where session["username"] = fred for example

0

精彩评论

暂无评论...
验证码 换一张
取 消