|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
MembershipUser (Clase)
Espacio de nombres: System.Web.Security
Ensamblado: System.Web.ApplicationServices (en System.Web.ApplicationServices.dll)
El tipo MembershipUser expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | MembershipUser() | |
![]() | MembershipUser(String, String, Object, String, String, String, Boolean, Boolean, DateTime, DateTime, DateTime, DateTime, DateTime) |
| Nombre | Descripción | |
|---|---|---|
![]() | Comment | |
![]() | CreationDate | |
![]() | ||
![]() | IsApproved | |
![]() | IsLockedOut | |
![]() | IsOnline | |
![]() | LastActivityDate | |
![]() | LastLockoutDate | |
![]() | LastLoginDate | |
![]() | LastPasswordChangedDate | |
![]() | PasswordQuestion | |
![]() | ProviderName | |
![]() | ProviderUserKey | |
![]() | UserName |
| Nombre | Descripción | |
|---|---|---|
![]() | ChangePassword | |
![]() | ChangePasswordQuestionAndAnswer | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetHashCode | |
![]() | GetPassword() | |
![]() | GetPassword(String) | |
![]() | GetType | |
![]() | MemberwiseClone | |
![]() | ResetPassword() | |
![]() | ResetPassword(String) | |
![]() | ToString | |
![]() | UnlockUser |
Nota |
|---|
| Topic | Location |
|---|---|
| Cómo: Implementar un usuario suscrito personalizado | Generar aplicaciones Web ASP .NET |
| Cómo: Implementar un usuario suscrito personalizado | Generar aplicaciones Web ASP .NET en Visual Studio |
Nota sobre la seguridad |
|---|
<%@ Page Language="C#" %> <%@ Import Namespace="System.Web.Security" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> MembershipUser u; public void Page_Load(object sender, EventArgs args) { u = Membership.GetUser(User.Identity.Name); if (!IsPostBack) { EmailTextBox.Text = u.Email; } } public void UpdateEmailButton_OnClick(object sender, EventArgs args) { try { u.Email = EmailTextBox.Text; Membership.UpdateUser(u); Msg.Text = "User e-mail updated."; } catch (System.Configuration.Provider.ProviderException e) { Msg.Text = e.Message; } } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Sample: Update User E-Mail</title> </head> <body> <form id="form1" runat="server"> <h3>Update E-Mail Address for <%=User.Identity.Name%></h3> <asp:Label id="Msg" ForeColor="maroon" runat="server" /><br /> <table cellpadding="3" border="0"> <tr> <td>E-mail Address:</td> <td><asp:TextBox id="EmailTextBox" MaxLength="128" Columns="30" runat="server" /></td> <td><asp:RequiredFieldValidator id="EmailRequiredValidator" runat="server" ControlToValidate="EmailTextBox" ForeColor="red" Display="Static" ErrorMessage="Required" /></td> </tr> <tr> <td></td> <td><asp:Button id="UpdateEmailButton" Text="Update E-mail" OnClick="UpdateEmailButton_OnClick" runat="server" /></td> </tr> </table> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
