javascript function is not calling if m use responce object in .cs file
<p>I have called a javascript function from my code behind,it works but when i use responce object for exporting a excel file,it only export excel file,not calling the javascript function.</p>

<p>Page.ClientScript.RegisterStartupScript(typeof(Page), "SymbolError",</p>

<pre><code>"&lt;script type='text/javascript'&gt;HidePopUp();&lt;/script&gt;"); 





            //Cdoe to Export file

            Response.Clear();

            Response.Buffer = true;

            string filePath = "BrokerMemoData-" + DateTime.Now.ToString("dd") + DateTime.Now.ToString("MMM") + DateTime.Now.ToString("yy") + "_" + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + objDiaUserInfo.USER_ID.ToString() + ".xls";

            //Response.Write("&lt;script type='text/javascript'&gt;Javascript:alert('sdas');&lt;/script&gt;");

            Response.ContentType = "application/vnd.ms-excel";

            Response.AddHeader("Content-Disposition", "inline;filename=" + filePath + "");

            //Get the physical path to the file.

            //string FilePath = @"C:\PivotalExcel\Data.xls";

            //Write the file directly to the HTTP content output stream.

            Response.WriteFile(sFileName);

            Response.End();
</code></pre>

<p>Now excel is exported but the javascript hide fun is not called.</p>
