Hi, why don't you try calling the OpenNewWP() javascript function after the execution of the this.GetPostBackEventReference(btnLogIn) and see if it works or not. Sometimes the ordering of the functions in incorrect order results in the problem.