我有一个条件,我想在页面加载时显示弹出 div,具体取决于查询字符串。就像如果查询字符串delete=1那么我需要打开弹出窗口。我正在使用以下链接中弹出的模式:
SimpleModal Demos我正在使用OSX 样式对话框,请帮助我。
我的代码背后的代码是
if (!string.IsNullOrEmpty(Request.QueryString["delete"]) && !string.IsNullOrEmpty(Request.QueryString["u"]))
{
ScriptManager.RegisterStartupScript(this, GetType(), "test", "$('#osx-modal-content').modal({overlayId: 'osx-overlay',containerId: 'osx-container', closeHTML: null,minHeight: 80,opacity: 65, position: ['0',],overlayClose: true, onOpen: OSX.open,onClose: OSX.close }); ", true);
}