if (read.HasRows)
{
Response.Write("<script language=javascript>alert( '该用户已注册!');window.location.href='StuInsert.aspx';</script>");
或者
System.Web.UI.Page.ClientScript.RegisterStartupScript(System.Web.UI.Page.GetType(), "message", "<script language='javascript' defer>alert('该用户已注册!');location.href='StuInsert.aspx'</script>");
...
20
2012
04
Asp.Net 弹出对话框,提示用户
发布:郑德才博客 | 分类:学习之路 | 评论:0 | 浏览: