封装提示对话框

来源:互联网 发布:免费下载itunes软件 编辑:程序博客网 时间:2024/04/29 22:18

在类中定义下面的方法,然后进行调用。

public string messageBox()

{

string str;

str="<script language=javescript>alert('"+txtMessage+'");location='"+url+'"</script>";

}




response.write(cc.messageBox("   ","," ~/manage/login.aspx""));