使用

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "xxx", "alert('原密码输入错误!请重新输入!')", true);

这样的代码。