Using JS Event handlers inside a wizard inside an updatepanel

I've got a textbox being used to enter a password inside a wizard control. I'm trying to get a password strength meter working with it.

Unfortunately, the password box isn't visible until step 4 and this means that I can't register the event handler onload() and putting some JS next to the PW box to register the event handler doesn't seem to fire. I'm guessing this is due to the contents of the wizard being loaded through an AJAX postback

Can someone please suggest how I can register the event handler? many thanks...

    function CheckCustomJSHandlers() {
        if (document.getElementById('<%=Password1.ClientID %>')) {
            document.getElementById('<%=Password1.ClientID %>').onkeyup = CheckPasswordStrength;


Add this to your JavaScript:


Need Your Help

Populating a set of child objects in hibernate

hibernate orm parent-child

I am trying to populate a set of child objects in my parent objects.

regular expressions missing out certain letters

php regex

Is there a simple way to ignore/miss out certain letters. The problem is find a word that is 5 letters long but does not contain the letters b,j,m or n.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.