Javascript onKeyPress event not working?
<p>Why does this statement work with OnKeyPress event of Javascript in C#.    </p>

<pre><code> txtPassword.Attributes.Add("OnKeyUp", "CheckPasswordStrength(\"" 
                + txtPassword.ClientID.ToString() + "\",\""+  lblMessage.ClientID.ToString() +"\")");
</code></pre>

<p>this code is working correctly, my problem is that i want to run keypress event not keyup event</p>
