Hi All
I am exporting Excel File On image Click
And On Image Click I am doing This
$(".excel_icon a img").bind("click", function () {
$("#processingDiv").show();
getValues();
document.getElementById('<%=btnExportExcel.ClientID%>').click();
});
In This Code processingDiv is the the loader icon and it is html div with image that work as loader
Then Here Is my Server Side Code
protected void btnExportExcel_Click(object sender, EventArgs e)
{
System.Data.DataTable table = getDataTable(hfSearchParams.Value);
if (table != null)
{
changeColumnNames(table);
string filenameExcel = "Export.xls";
if (table.Rows.Count > 0)
{
Response.Buffer = true;
Response.ClearContent();
...
Go to the complete details ...