Updating of Membership fields in GridView

Last post 11-01-2007 1:16 AM by XiaoYong Dai – MSFT. 1 replies.

Sort Posts:

  • Updating of Membership fields in GridView

    10-30-2007, 5:13 AM
    • Member
      14 point Member
    • JinKwok
    • Member since 06-21-2006, 5:21 AM
    • Posts 46

    Hi,

    I am developing a website that uses ASP.NET 2.0 Membership providers. I have created a few new users but I am not able to find any examples on how I can edit/update the UserName and Email fields.

    I understand that you can use the attribute "UpdateUser" in the Membership provider. Can anyone provide any examples on this?

    Thanks.

  • Re: Updating of Membership fields in GridView

    11-01-2007, 1:16 AM
    Answer

    Hi

    You cannot change the username directly. one approach is create a mirror user(different username) and remove the old one. Here is an example about how to update email filed using Sql Data Presentation Control, Hope it helps

    http://forums.asp.net/p/1159431/1919704.aspx#1919704

    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (2 items)