我必须将4个参数传递给ssrs报告,这就是我的网址的外观
Response.Redirect("http://ups117850/rpt/Pages/Rept.aspx?ItemPath=%2feMaaS%2feMaaS&rs:Command=render&studentId=" + studentID + "&startdate=" + StartDate + "&enddate=" + EndDate + "&type=" + type);
学生编号= 1031
开始日期= 4/1/2011
结束日期= 4/30/2011
类型=学生
ssrs引发错误“参数验证失败”
最佳答案
我怀疑问题出在您传递的StartDate和EndDate中。如果这些是实际的DateTime值,则可能需要正确格式化结果字符串。以下代码的工作原理是否有所不同?
Response.Redirect("http://ups117850/rpt/Pages/Rept.aspx?ItemPath=%2feMaaS%2feMaaS&rs:Command=render&studentId=" + studentID + "&startdate=" + StartDate.ToString("s") + "&enddate=" + EndDate.ToString("s") + "&type=" + type);
关于asp.net - 通过querystring将参数传递给ssrs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7918224/