ProfileView can now be used for user administration#
By far, the most common feature request for my ProfileView control was the ability to edit the profile of any user in the system. Until now, the control could only be used by the current user to edit their own profile. I thought it was a limitation of the Profile provider framework, until I discovered ProfileBase.Create(). I apologize to everyone that has been waiting for this much needed feature for so long.

Just set the UserName property on the control to edit a different user. The property is null by default, which loads the current user.

Example usage in a WebForm used to edit a profile:

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!Page.IsPostBack)

        {

            string userName = Request.QueryString["username"];

            if (!String.IsNullOrEmpty(userName))

            {

                ProfileView1.UserName = userName;

            }

        }

    }



Download the latest code from the ProfileView project page.
Saturday, June 24, 2006 11:47:41 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Wednesday, October 04, 2006 12:41:43 PM (Central Daylight Time, UTC-05:00)
How does one go about modifying the look and feel of this addin. by that I mean aligning text boxes and changing design elements.

Comments are closed.
All content © 2010, josh
About this site
Send mail to the author(s) Contact me
Feed your aggregator (RSS 2.0)
Joshua Flanagan
I am a software developer focused on continuous improvement in the .NET community
Los Techies

On this page
Archives
Rest of the world

Acknowledgements

Powered by: newtelligence dasBlog 2.1.8209.14743

Special thanks to LosTechies.com

Site theme based on the essence design by Jelle Druyts

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.