Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript window.showModalDialog不工作_Javascript_Asp.net - Fatal编程技术网

Javascript window.showModalDialog不工作

Javascript window.showModalDialog不工作,javascript,asp.net,Javascript,Asp.net,我有以下代码显示ModalDialog弹出窗口:-- .aspx代码为:- function ShowPopup(path) { window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes'); } switch (e.CommandName.ToLower()) { case "sendenquiry": string path = string.Fo

我有以下代码显示ModalDialog弹出窗口:--

.aspx代码为:-

function ShowPopup(path) {
     window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes');
}
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;
我的aspx.cs代码是:-

function ShowPopup(path) {
     window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes');
}
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

尝试打开java控制台,查看您在执行操作时在浏览器中收到的错误。另外,从你的.aspx页面多写一点代码会很有帮助。很抱歉在我之前的评论中没有说清楚,但重要的是要看看你是如何在你的.aspx页面中包含脚本的。这意味着看到这个脚本块的开始和结束脚本标记以及它们之间的所有内容将是有益的。。。