Click here to Skip to main content
15,923,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
after this line
C#
Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Report");



i wrote statment which call javascript method to enable button

C#
string JScript = "javascript:Btn_Click()";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "JScript", JScript, true);
             btnExcel.Enabled = true;

i.e.

C#
Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Report");


C#
string JScript = "javascript:Btn_Click()";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "JScript", JScript, true);
             btnExcel.Enabled = true;



but javascript doesnot call why?
Posted
Updated 28-Apr-12 2:03am
v2
Comments
Sandeep Mewara 28-Apr-12 11:49am    
What is "Btn_Click()"? Where and when is this defined?

1 solution

The response is getting overwritten. See my answer on the more recent post of this same question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900