rock9449 36 Light Poster
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 
        <asp:TextBox ID="TxtPassword" runat="server" 
            TextMode="Password" ontextchanged="TxtPassword_TextChanged1"></asp:TextBox>
        <asp:Label ID="Label1" runat="server" Text="Password"></asp:Label>
    
        <br />
       
  <asp:Label ID="Label2" runat="server"></asp:Label>

    </div>
    <p>
        &nbsp;</p>
    </form>
</body>
</html>

here is my event handler code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

        
       
        protected void TxtPassword_TextChanged1(object sender, EventArgs e)
        {
            Label2.Text = PasswordChar='';  [WHAT GOES HERE?]
        }
}

my problem is i forget what goves after the label2.text the purpose of the excersie is to enter a password have it be encrypted (got that so far) but the part i am confused in is having the password repeated back ex password *** so label 2 should read the password as what you typed in ex 123

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.