<asp:Button ID="btnDownloadReport" Visible="true" runat="server" Text="Download" OnClientClick="$('.loading').show();" OnClick="btnDownloadReport_OnClick"/> This is the DIV tag that is displaying the message. <div class="loading" id="main" align="center" runat="server"> <br /> Loading. Please wait.<br /> <br />
protected void btnDownloadReport_OnClick(object sender, EventArgs e) { GetData(); // any code written here is not getting executed }
ScriptManager.RegisterStartupScript(this, typeof(string), "script", "$('.loading').hide();", true);
Page.ClientScript.RegisterStartupScript(Type.GetType("System.String"), "addScript", "HideLoadingImage()", true);
HideLoadingImage
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)