开发者

Create a user profile page dynamically - httphandler? profile provider?

开发者 https://www.devze.com 2023-03-13 20:30 出处:网络
I want to dynamically create a user profile page with user info displayed (name, address, uploa开发者_如何学编程ded content, etc.). I\'ve looked at many tutorials online related to this, but am not su

I want to dynamically create a user profile page with user info displayed (name, address, uploa开发者_如何学编程ded content, etc.). I've looked at many tutorials online related to this, but am not sure which way is best. I am using ASP.NET Membership provider for user data. Should I use HTTPHandler and create the ashx file? or just use the Request.QueryString method directly in my code behind? And I'm not sure where ASP.NET Profile provider fits into all this. Thanks in advance!


I am using Forms Authentication in my site. As an example, to set the Welcome to the site label, i have

this.lblUserName.Text = "Welcome " + HttpContext.Current.User.Identity.Name:

If you added more personal information to the Userdata property of the forms ticket, you could show that personalized information similarly.

Hope this helps.

0

精彩评论

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