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.

OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (HTML not allowed)  

Live Comment Preview
All content © 2008, Joshua Flanagan
About this site
Send mail to the author(s) Contact me
Feed your aggregator (RSS 2.0)
Joshua Flanagan
I have been developing software professionally for 10 years; focusing on .NET since its release. I use this site to interact with, and contribute to, the .NET software development community.
Microsoft Certified Application Developer

On this page
Archives
Rest of the world

Acknowledgements

Powered by: newtelligence dasBlog 2.1.8209.14743

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

Site theme based on the essence design by Jelle Druyts