我在Page_Load代码中收到此错误 [英] I get this error in the Page_Load code

查看:85
本文介绍了我在Page_Load代码中收到此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Page_Load中有一个代码,我得到了代码错误。



I have a code in Page_Load and I get an error for the code.

protected void Page_Load(object sender, EventArgs e)
        {
            CrystalDecisions.Shared.ParameterDiscreteValue paramValue = new CrystalDecisions.Shared.ParameterDiscreteValue();

            paramValue.Value = System.Web.HttpContext.Current.Session["INST_ID"];
            crReportDocument.SetParameterValue("INST_ID", paramValue);

        }   
        
    }
}





错误是crReportDocument。它下面有红线。怎么解决这个问题?我正在尝试将会话传递给所做的水晶报告。



The error is with crReportDocument. It has the red lines under it. How can this be fixed? I am trying to pass session to the crystal report that was made.

推荐答案

引用:

错误与crReportDocument有关。它下面有红线。

The error is with crReportDocument. It has the red lines under it.

这意味着它没有在Page上声明。

That means it is not declared on Page.


这篇关于我在Page_Load代码中收到此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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