日期:2014-05-18  浏览次数:20430 次

asp.net消息框问题(我希望弹出消息框后主窗体无法修改,类似winform中的ShowDialog)
我现在的写法-> 
C# code

Page.ClientScript.RegisterStartupScript(this.GetType(), "提示信息", "<script>alert('" + "请选择性别" + "');</script>");


我希望弹出消息框后主窗体无法修改,类似winform中的ShowDialog

怎么改写?

------解决方案--------------------
Page.ClientScript.RegisterStartupScript(this.GetType(), "提示信息", "<script>showModalDialog('xx.aspx?content=xxxx');</script>");

那就使用showModalDialog

或者使用query的box 等
http://www.cnblogs.com/xiaoyao2011/archive/2011/10/16/2213832.html
http://www.jquery4u.com/windows/14-jquery-modal-dialog-boxes/
http://onehackoranother.com/projects/jquery/boxy/