【发布时间】:2012-09-22 00:49:57
【问题描述】:
我有一个条件,我想在页面加载时显示弹出 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);
}
【问题讨论】:
-
@sqve 请再研究一下这个问题。
标签: c# javascript jquery asp.net code-behind