ChangePassword control is a ready to use control to help users to change their password.
Internally, When it is rendered on the page, it is implemented through <table></table> HTML tag.
Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc.
are implemented through style properites of <table, tr, td/> tag.
ChangePassword control uses Membership service to change user's password.
DEMO : ChangePassword
|
Show Source Code
|
NOTE: This example is not working as this control uses in-built Membership and Role Manager Providers, We will try to cover membership provider tutorials in future.
|
|
// ChangePassword Control ////////////////////////////
<asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#F7F6F3" Enabled="False"
BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="0.8em">
<CancelButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
<InstructionTextStyle Font-Italic="True" ForeColor="Black" />
<PasswordHintStyle Font-Italic="True" ForeColor="#888888" />
<ChangePasswordButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
<ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
<TextBoxStyle Font-Size="0.8em" />
</asp:ChangePassword>
|