c# - How to put loading image when something is processing? -


i having page in when click on create button sends web request links mean while takes time links working or not @ time want put image load

 button id="btnrender" runat="server" text="page render" onclick="btnrender_click" />         <asp:button id="btn_submit" runat="server" text="submit" onclientclick="javascript:finda();" />         <asp:button id="btn_createlink" runat="server" text="create link" onclick="btn_createlink_click" /> 

i want call on btn_createlink_click" button when user clicks image or text should appear

without ajax tool:
call loading image on button click , hide image on page load completes.

<%@ page language="c#" autoeventwireup="true"  codefile="default.aspx.cs" inherits="_default" %>  <!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 showprogressbar() {         document.getelementbyid('dvprogressbar').style.visibility = 'visible';       }        function hideprogressbar() {         document.getelementbyid('dvprogressbar').style.visibility = "hidden";       }     </script> </head> <body onload="javascript:hideprogressbar()" >     <form id="form1" runat="server">      <div>   <div style="float:left;">       <asp:button id="btn_createlink" runat="server" text="create link" onclick="btn_createlink_click" onclientclick="javascript:showprogressbar()" />   </div>   <div id="dvprogressbar" style="float:left;visibility: hidden;" >         <img src="/images/progress_bar.gif" /> resolving address, please wait...   </div>   <br style="clear:both" /> </div>     </form> </body> </html> 



Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -