window.showModalDialog无效

时间:2011-08-08 07:19:06

标签: javascript asp.net

我有以下代码来showModalDialog弹出:---

.aspx代码是: -

function ShowPopup(path) {
     window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes');
}

我的aspx.cs代码是: -

switch (e.CommandName.ToLower())
{
    case "sendenquiry":
        string path = string.Format("/BusinessBazaarAspx/PopUps/Enquiry.aspx?c={0}", id);
        ScriptManager.RegisterClientScriptBlock(gvLatestCompanies, GetType(), "mykey2",
                                                string.Format("ShowPopup('{0}')", path), true);
         break;

但我的模态弹出窗口不可见......

帮我解决这个问题。

Thankx

0 个答案:

没有答案