I update password, but after that when i click on any other link it shows required fie...
Code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="setting.aspx.cs" Inherits="setting" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="cppanel" runat="server" BorderWidth="2" BorderColor="DarkGray" BackColor="DarkGray" Width=100% Height="1px">
<br />
<asp:Label ID="cplable" runat="server" BackColor="DarkGray" Text="Change Password" Font-Bold="True" Font-Size="X-Large" Width="245px"></asp:Label></asp:Panel>
<br />
<br />
<br />
<asp:Panel ID="cpppassword" runat="server" Width="563px">
<table align="center">
<tr>
<td style="width: 193px">
<asp:Label ID="cplodlpassword" runat="server" Text="Enter Old Password"></asp:Label>
</td>
<td style="width: 357px">
<br />
<asp:TextBox ID="cptoldpassword" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="cprfvoldpassword" runat="server" ErrorMessage="Required*" ControlToValidate="cptoldpassword"></asp:RequiredFieldValidator>
<br />
</td>
</tr>
<tr>
<td>
<asp:Label ID="cplnewpassword" runat="server" Text="Enter New Password"></asp:Label></td>
<td style="width: 357px">
<br />
<asp:TextBox ID="cptnewpassword" runat="server" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="cprfvnewpassword" runat="server" ErrorMessage="Required*" ControlToValidate="cptnewpassword"></asp:RequiredFieldValidator><br />
</td>
</tr>
<tr>
<td>
<asp:Label ID="cplconfirmpassword" runat="server" Text="Confirm Password"></asp:Label>
</td>
<td style="width: 357px">
<br />
<asp:TextBox ID="cptconfirmpassword" runat="server" TextMode="Password" ></asp:TextBox>
<asp:RequiredFieldValidator ID="cprfvconfirmpassword" runat="server" ErrorMessage="Required*" ControlToValidate="cptconfirmpassword" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Not Match*" Display="Dynamic" ControlToCompare="cptnewpassword" ControlToValidate="cptconfirmpassword"></asp:CompareValidator>
<br />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="cpbchangepassword" runat="server" Text="Change Password" OnClick="cpbchangepassword_Click" />
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>
Comment