protected void huiyuan_Click(object sender, EventArgs e) { if (txtCn.Text == "我承诺我会严格遵守论坛的相关制度") { if (UsersBll.usersvip(Session["usersname"].ToString()) > 0) { Page.ClientScript.RegisterClientScriptBlock(typeof(Object), "alert", "<script>alert('注册VIP成功!');</script>"); } else { Page.ClientScript.RegisterClientScriptBlock(typeof(Object), "alert", "<script>alert('注册VIP失败!');</script>"); } } else { Page.ClientScript.RegisterClientScriptBlock(typeof(Object), "alert", "<script>alert('承诺失败!');</script>"); } }