发送网址时出现问题 [英] Problem with sending URL

查看:92
本文介绍了发送网址时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将以下URL发送到wbFrmReportViewer.aspx时,它不会转到查看器页面。它出现了异常,错误是:

无法评估表达式,因为代码已优化或本机框架位于调用堆栈之上

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"

string strUrl = "wbFrmReportViewer.aspx?RepName=ApprovalReportByDateTime&OptionStatus=" + ddlSelectReport.SelectedValue.Trim()+ "&Date=" + dptDate.Text.Trim() + "&Param=" + strParam;
                   Response.Redirect(strUrl);

推荐答案

你能否在第一个参数中传递名称,这个参数不是任何控制而是静态名字

如果你想传递任何控制值请指定它。



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.

string strUrl = "wbFrmReportViewer.aspx?RepName=ApprovalReportByDateTime&OptionStatus=" + ddlSelectReport.SelectedValue.Trim()+ "&Date=" + dptDate.Text.Trim() + "&Param=" + strParam;
                   Response.Redirect(strUrl);


这篇关于发送网址时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆