Click here to Skip to main content
15,923,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I send the following URL to wbFrmReportViewer.aspx then it does not go to the viewer page. It arises an exception and the error is :
"unable to evaluate expression because the code is optimized or native frame is on top of the call stack"
C#
string strUrl = "wbFrmReportViewer.aspx?RepName=ApprovalReportByDateTime&OptionStatus=" + ddlSelectReport.SelectedValue.Trim()+ "&Date=" + dptDate.Text.Trim() + "&Param=" + strParam;
                   Response.Redirect(strUrl);
Posted

1 solution

Can you pass name in first parameter which is not any control but a static name
if you want to pass any controls value please specify it.

C#
string strUrl = "wbFrmReportViewer.aspx?RepName=ApprovalReportByDateTime&OptionStatus=" + ddlSelectReport.SelectedValue.Trim()+ "&Date=" + dptDate.Text.Trim() + "&Param=" + strParam;
                   Response.Redirect(strUrl);
 
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