作者在 2013-07-18 14:29:59 发布以下内容
1. ClientScript.RegisterStartupScript(Gettype(),"","<script>alert('现在去修改密码');window.open('index.aspx?id="+loginId+"');</script>"); //loginId传参变量
2. ClientScript.RegisterStartupScript(gettype(),"","<script>alert('现在去修改密码');window.location='index.aspx?id="+loginId+"';</script>"); //loginId传参变量
3.Response.Write("<script language='javascript'>alert('现在去修改密码');window.location='index.aspx?id="+loginId+"';</script>") //注意是window.location而不是href.location