Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.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
将加载窗口添加到ASP.NET网站,如Silverlight中的子窗口_Asp.net_C# 4.0 - Fatal编程技术网

将加载窗口添加到ASP.NET网站,如Silverlight中的子窗口

将加载窗口添加到ASP.NET网站,如Silverlight中的子窗口,asp.net,c#-4.0,Asp.net,C# 4.0,我有一个用C#/ASP.NET编写的网站。我尝试在加载页面时添加加载/等待窗口。如何在Asp.net中实现这一点?谢谢 我用DOJO解决了这个问题。我用了dijit.dialog。以下是我代码的一部分: <head> <!-- api's (you can use also google apis: https://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js) --> <link href

我有一个用C#/ASP.NET编写的网站。我尝试在加载页面时添加加载/等待窗口。如何在Asp.net中实现这一点?谢谢


我用DOJO解决了这个问题。我用了dijit.dialog。以下是我代码的一部分:

<head>
<!-- api's (you can use also google apis: https://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js) -->
    <link href="<%=Url.Content("~/Scripts/dojo/dijit/themes/tundra/tundra.css")%>" rel="stylesheet"
        type="text/css" media="screen" />
    <link href="<%=Url.Content("~/Scripts/dojo/dojo/resources/dojo.css")%>" rel="stylesheet"
        type="text/css" media="screen" />
     <script djconfig="parseOnLoad: true" type="text/javascript" src="<%=Url.Content("~/Scripts/dojo/dojo/dojo.js")%>"> </script>
</head>

<script type="text/javascript">

dojo.require("dijit.Dialog");
dojo.require("dijit.layout.ContentPane");


// This is the function to show the spinning whell (or something else to demonstrate the loading progress)

    function wheelShow() {
        var dialog = new dijit.Dialog({ title: "Loading...", id: "wheel" });
        dialog.setContent("<img style='height: 55px; width: 55px; text-align:center' src='../../Content/images/loader.gif' />");
        dialog.show();
        // hiding of close button in dialog
        dojo.query("#wheel .dijitDialogCloseIcon").forEach(function(node, index, arr) {
            node.style.visibility = "hidden";
        });
    }
</script>

<body class="tundra">
    <!-- after the page will be completly loaded - hide the wheel -->
    <div id="delayedContent" onload="dijit.byId('wheel').hide()">


<!-- your page content here... -->


    </div>
</body>

require(“dijit.Dialog”);
require(“dijit.layout.ContentPane”);
//这是显示旋转旋转的功能(或用于演示加载进度的其他功能)
功能轮展(){
var dialog=new dijit.dialog({title:“Loading…”,id:“wheel”});
dialog.setContent(“”);
dialog.show();
//隐藏对话框中的关闭按钮
dojo.query(“#wheel.dijitDialogCloseIcon”).forEach(函数(节点、索引、arr){
node.style.visibility=“隐藏”;
});
}

我用DOJO解决了这个问题。我用了dijit.dialog。以下是我代码的一部分:

<head>
<!-- api's (you can use also google apis: https://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js) -->
    <link href="<%=Url.Content("~/Scripts/dojo/dijit/themes/tundra/tundra.css")%>" rel="stylesheet"
        type="text/css" media="screen" />
    <link href="<%=Url.Content("~/Scripts/dojo/dojo/resources/dojo.css")%>" rel="stylesheet"
        type="text/css" media="screen" />
     <script djconfig="parseOnLoad: true" type="text/javascript" src="<%=Url.Content("~/Scripts/dojo/dojo/dojo.js")%>"> </script>
</head>

<script type="text/javascript">

dojo.require("dijit.Dialog");
dojo.require("dijit.layout.ContentPane");


// This is the function to show the spinning whell (or something else to demonstrate the loading progress)

    function wheelShow() {
        var dialog = new dijit.Dialog({ title: "Loading...", id: "wheel" });
        dialog.setContent("<img style='height: 55px; width: 55px; text-align:center' src='../../Content/images/loader.gif' />");
        dialog.show();
        // hiding of close button in dialog
        dojo.query("#wheel .dijitDialogCloseIcon").forEach(function(node, index, arr) {
            node.style.visibility = "hidden";
        });
    }
</script>

<body class="tundra">
    <!-- after the page will be completly loaded - hide the wheel -->
    <div id="delayedContent" onload="dijit.byId('wheel').hide()">


<!-- your page content here... -->


    </div>
</body>

require(“dijit.Dialog”);
require(“dijit.layout.ContentPane”);
//这是显示旋转旋转的功能(或用于演示加载进度的其他功能)
功能轮展(){
var dialog=new dijit.dialog({title:“Loading…”,id:“wheel”});
dialog.setContent(“”);
dialog.show();
//隐藏对话框中的关闭按钮
dojo.query(“#wheel.dijitDialogCloseIcon”).forEach(函数(节点、索引、arr){
node.style.visibility=“隐藏”;
});
}

我发现了类似的东西。使用起来似乎简单实用:


顺便说一下,谢谢你的回答

我发现了类似的东西。使用起来似乎简单实用:

顺便说一下,谢谢你的回答