Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2006, 09:42 PM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madok
Default Editing a MembershipUser without changing it’s log

I have been trying to retrieve and update a MembershipUser properties without changing the MembershipUser loged on status for some reason I an unable to do it



   protected void Page_Load(object sender, EventArgs e)

    {

        // retrieve the username from the querystring

        userName = this.Request.QueryString["UserName"];

        if (string.IsNullOrEmpty(userName))

            userName = User.Identity.Name.ToString();



        lblRolesFeedbackOK.Visible = false;

        lblProfileFeedbackOK.Visible = false;



        if (!this.IsPostBack)

        {

            // show the user's details

            UserProfileControl1.UserName = userName;

            MembershipUser user = Membership.GetUser(userName, false);

            lblUserName.Text = user.UserName;

            lnkEmail.Text = user.Email;

            lnkEmail.NavigateUrl = "mailto:" + user.Email;

            lblRegistered.Text = user.CreationDate.ToString("f");

            lblLastLogin.Text = user.LastLoginDate.ToString("f");

            lblLastActivity.Text = user.LastActivityDate.ToString("f");

            chkOnlineNow.Checked = user.IsOnline;

            chkApproved.Checked = user.IsApproved;

            chkLockedOut.Checked = user.IsLockedOut;

            chkLockedOut.Enabled = user.IsLockedOut;

            BindRoles();

        }

    }

I but when I go back and try to view the status of the user I notice that there status has changed to logged on as well as there last activity has been updated can anyone please help me!


sh*t happens





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dim user As MembershipUser = Membership.GetUser(us sstuber BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 8th, 2008 03:42 PM
How to log to server's event log LenexaKS Access VBA 4 March 11th, 2008 12:49 PM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
editing datagrid and changing cell color upon edit matoaka VS.NET 2002/2003 0 August 11th, 2006 11:04 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.