开发者

window.showModalDialog is not working

I have the followi开发者_开发百科ng code to showModalDialog popup:---

.aspx code is:-

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

My aspx.cs code is:--

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;

But my Modal Popup is not visible...

Help me to get rid of this problem.

Thankx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜