Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 13th, 2006, 09:42 PM
Registered User
Join Date: Sep 2006
Location: London, London, United Kingdom.
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;




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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:15 AM.

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