asp.net – 尝试设置此报告中未定义的报告参数“名称”?
发布时间:2020-12-16 03:42:21 所属栏目:asp.Net 来源:网络整理
导读:我正在尝试加载一个报告,该报告按文本框1中的名称进行过滤,但我收到错误“尝试设置报告参数’名称’未在此报告中定义”任何想法? Dim ds As New TestDataSetTableAdapters.tblTestDataTableAdapter ' Create report data source Dim ID As ReportParameter
我正在尝试加载一个报告,该报告按文本框1中的名称进行过滤,但我收到错误“尝试设置报告参数’名称’未在此报告中定义”任何想法?
Dim ds As New TestDataSetTableAdapters.tblTestDataTableAdapter ' Create report data source Dim ID As ReportParameter ID = New ReportParameter("Name",TextBox1.Text) Dim rds As New ReportDataSource("MyApplication_ModelObject",ObjectDataSource1) ' Clear the datasets in the report viewer and add the new datasource ReportViewer1.LocalReport.DataSources.Clear() ReportViewer1.LocalReport.DataSources.Add(rds) ReportViewer1.LocalReport.SetParameters(ID) ReportViewer1.LocalReport.Refresh() 解决方法
ReportParameter的Name部分必须与Report中的参数名称匹配.
它可能是@Name,最好这样做是打开报告并检查那里. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ASP.NET MVC中<%:和<%=有什么区别?
- ASP.NET有一个复选框列表,在4×5网格中有我很好的复选框
- JavaScript即时判断输入密码的强度
- ASP.NET MVC 5表单验证和错误处理
- asp.net – RegisterForEventValidation只能在渲染过程中调
- ASP.NET MVC3 JQuery Validate Plugin自定义错误放置
- asp.net core 2.0 – 多个项目解决方案docker文件
- 英镑符号(£)从ASP.NET字符串中消失
- asp.net – 以编程方式从GridView添加和删除事件
- asp.net-mvc – 为什么删除:ASP.NET MVC CheckBoxList(没有
推荐文章
站长推荐
- asp.net-mvc-3 – ASP.NET MVC 3将无法识别.csht
- asp.net-mvc – ASP.NET MVC – 用于ICollection
- asp.net-mvc-2 – 强大类型的ActionLink在Asp.Ne
- asp.net-mvc-4 – Web API HTTP请求命名约定
- ASP.Net执行顺序
- ASP.NET自定义控件
- asp.net-web-api – 无法在ASP.NET Core 1.0中启
- asp.net-mvc – MVC 4忽略DefaultModelBinder.Re
- ASP.NET-MVC.如何从URL获取控制器名称?
- .net core项目启动时报_未处理Socket异常(以一种
热点阅读