c# - I want to implement loading content page once masterpage is loaded -


When I load the master page content, I want to load the content page. I have tried some of this default Espacks

  & lt; Script type = "text / javascript" & gt; Function showprint () {setTimeout (function ()} {var modal = $ ('& lt; div / & gt;'); modal.addClass ("modal"); $ ('body'). Append (modal); Var loading = $ ("loading"); loading. Show (); var top = math.max ($ (window). Light () / 2 - loading [0] .offetset / 2, 0); var left = Math.max ($ (window). Wide () / 2 - Loading [0] .offetwidth / 2, 0); loading css ({top: top, left: left) });}, 200); } $ ('Form'). Submit ("submit", function () {shogrell ();}); & Lt; / Script & gt; & Lt; ASP: Button ID = "BTN Sebuit" Runat = "Server" Text = "Load Customers" OnClick = "btnSubmit_Click" / & lt; Div class = "loading" align = "center" & gt; It is loading. please wait. & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Img src = "image / loading.gif" width = "50" alt = "" / & gt; & Lt; / Div & gt;  

Here is the default. Aspx.cs code

  Secure Zero Page_load (Object Sender, EventArgs e) {if (IsPostBack) {string script = " $ (Document) .ready (function () {$ ('[* * * * * BTN] submit'). Click ();}); "; ClientScript.RegisterStartupScript (this.GetType (), "load", script, true); }} Secure Zero btnSubmit_Click (Object Sender, EventArgs e) {System.Threading.Thread.Sleep (5000); Repeater 1 Data Source = GetKioskData (1); Repeater1.DataBind (); }  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -