-
Notifications
You must be signed in to change notification settings - Fork 1
/
OnPostback.aspx
42 lines (38 loc) · 1.39 KB
/
OnPostback.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnPostback.aspx.cs" Inherits="OnPostback" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.14.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function OnControlsInitialized(s, e) {
//Hide
//lp.Hide();
//Hide After Timeout
setTimeout(function () {
lp.Hide();
}, 2000);
}
</script>
</head>
<body>
<form id="frmMain" runat="server">
<dx:ASPxHiddenField ID="hf" runat="server" ClientInstanceName="hf">
</dx:ASPxHiddenField>
<dx:ASPxLoadingPanel ID="lp" ClientInstanceName="lp" Modal="true" runat="server">
</dx:ASPxLoadingPanel>
<script type="text/javascript">
if (hf.Get("IsPostback"))
lp.Show();
</script>
<dx:ASPxGlobalEvents ID="ge" runat="server">
<ClientSideEvents ControlsInitialized="OnControlsInitialized" />
</dx:ASPxGlobalEvents>
<dx:ASPxButton ID="btn" runat="server" Text="Postback">
</dx:ASPxButton>
<br />
<a href="Default.aspx">Home</a>
</form>
</body>
</html>