<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" > <ContentTemplate> <asp:Label ID="lblPassword" runat="server" Text="Administrator Password:" Height="24px" Width="170px" style="font-weight: 700"></asp:Label> <asp:TextBox ID="TextBoxPassword" runat="server" Height="24px" Width="192px" Tooltip = "Enter Your Password (Case Senssitive)" ontextchanged="TextBoxPassword_TextChanged" AutoPostBack="True" ></asp:TextBox> <asp:Label ID="lblPasswordWarning" runat="server" Text="Incorrect Password, Re-enter again" Visible="False" Height="31px" Width="170px" style="color: #FF3300;"></asp:Label> </ContentTemplate> </asp:UpdatePanel>
protected void TextBoxPassword_TextChanged(object sender, EventArgs e) { if (TextBoxPassword.Text.Length > 5) { btnOK.Enabled = true; } }
<triggers> <asp:asyncpostbacktrigger controlid="TextBoxPassword" eventname="TextChanged" xmlns:asp="#unknown" /> </triggers> <pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)